Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
final class MyViewController: UIViewController {
   
let myView = MyView()
 
override func viewDidLoad() {
super.viewDidLoad()
setupMyView()
}
 
private func setupMyView() {
view.addSubview(myView)
//Umas 10 linhas de constraints
myView.delegate = self
//Agora temos tanto a 'view' quanto a 'myView'...
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.