Skip to content

Instantly share code, notes, and snippets.

@nathangitter
Created October 29, 2017 14:42
Show Gist options
  • Save nathangitter/9946734cf18e15138b58b7b2d5c6f793 to your computer and use it in GitHub Desktop.
Save nathangitter/9946734cf18e15138b58b7b2d5c6f793 to your computer and use it in GitHub Desktop.
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