Skip to content

Instantly share code, notes, and snippets.

@IsaAliev
Created October 17, 2020 08:36
Show Gist options
  • Save IsaAliev/58273d9ad67a651b8d9619be841c83bf to your computer and use it in GitHub Desktop.
Save IsaAliev/58273d9ad67a651b8d9619be841c83bf to your computer and use it in GitHub Desktop.
struct ViewDependency: ExpressibleByStringLiteral {
typealias StringLiteralType = String
var nibName: String
var identifier: String
var classType: AnyClass
var withNib = true
var isCell = true
var kind = ""
init(stringLiteral value: String) {
classType = swiftClassFromString(value)!
identifier = value
nibName = value
withNib = false
}
...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment