Last active
July 27, 2021 11:03
-
-
Save achernoprudov/332b148af70c3663310b828d84b9c5ea to your computer and use it in GitHub Desktop.
UIAction convenience initializer
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
| extension UIAction { | |
| convenience init(_ title: String, icon systemIconName: String = "", handler: @escaping UIActionHandler) { | |
| self.init(title: title, image: UIImage(systemName: systemIconName), handler: handler) | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment