-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added support to display a checkmark with isSelected
#16
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
❤️
@@ -11,6 +11,7 @@ import UIKit | |||
extension UIAlertAction { | |||
|
|||
private var imageKey: String { "image" } | |||
private var isSelectedKey: String { "checked" } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice! Would you mind changing this to isChecked
/isCheckedKey
to mimic the key?
Especially since I can imagine wanting to check multiple actions, I think check
vs selected
is a better name.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Makes sense, will change 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done ✅
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome stuff!
3.2.0
(from3.1.0
)isSelected
argument toUIAlertAction
's initialiser with a default value offalse
(non-breaking change)isSelected
3.2.0
isSelected
isSelected
Examples