Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Implicitly using UIControlEventPrimaryActionTriggered
let button = UIButton(frame: frame, primaryAction: action)
// implicitly
let button = UIButton(frame: frame)
button.addAction(action: action, for: .primaryActionTriggered)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment