Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@rockbruno
Created September 13, 2018 18:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rockbruno/3e2b4a8cc31e4e49ce416438700928e9 to your computer and use it in GitHub Desktop.
Save rockbruno/3e2b4a8cc31e4e49ce416438700928e9 to your computer and use it in GitHub Desktop.
final class MyViewController: UIViewController, HasCustomView {
typealias CustomView = MyView
override func loadView() {
let customView = CustomView()
customView.delegate = self
view = customView
}
override func viewDidLoad() {
super.viewDidLoad()
customView.render() //Algum método da MyView.
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment