Skip to content
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

Merged
merged 5 commits into from
Jan 19, 2020
Merged

Added support to display a checkmark with isSelected #16

merged 5 commits into from
Jan 19, 2020

Conversation

pedrommcarrasco
Copy link
Contributor

@pedrommcarrasco pedrommcarrasco commented Jan 19, 2020

  • Bumps to version 3.2.0 (from 3.1.0)
  • Adds isSelected argument to UIAlertAction's initialiser with a default value of false (non-breaking change)
  • Adds two unit tests to cover isSelected
  • Updates CHANGELOG.md with 3.2.0
  • Updates Example application with an example of isSelected
  • Updates README.md with an example of isSelected

Examples

Screenshot 2020-01-19 at 14 20 54

Screenshot 2020-01-19 at 14 20 58

Copy link
Owner

@BasThomas BasThomas left a 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" }
Copy link
Owner

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense, will change 👍

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done ✅

Copy link
Owner

@BasThomas BasThomas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome stuff!

@BasThomas BasThomas merged commit 4843b30 into BasThomas:master Jan 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants