Created
June 6, 2021 08:54
-
-
Save Koze/72a14cb2b423d0a3e230c45eaa3f0c95 to your computer and use it in GitHub Desktop.
Implicitly using UIControlEventPrimaryActionTriggered
This file contains hidden or 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
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