Created
October 29, 2017 14:42
-
-
Save nathangitter/9946734cf18e15138b58b7b2d5c6f793 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
override func viewDidLoad() { | |
let button = MyButton() | |
button.action = { | |
print("MyButton pressed!") | |
} | |
view.addSubview(button) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment