-
Notifications
You must be signed in to change notification settings - Fork 5
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
IOS 6669 Make Checkbox Squared. #111
Conversation
func isCheckedChanged(checked: Bool) { | ||
if checked { | ||
imageView.image = UIImage(named: "icn_checkbox_on", type: .brandedAndThemed) | ||
imageView.image = UIImage(named: "icn_checkbox_check", type: .common) | ||
removeBorder() | ||
imageView.backgroundColor = .controlActivated | ||
} else { | ||
imageView.image = UIImage(named: "icn_checkbox_off", type: .common) | ||
imageView.image = nil | ||
addBorder(color: .control) | ||
imageView.backgroundColor = .clear | ||
} |
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.
It might make sense to change to property? this way it could be used as
isCheckedChanged = false
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.
There is a isChecked
property already, this the method to be called when the property changes.
Not sure if that is what yo mean.
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.
I rather meant that I was confused by the name, I think we had agreed that functions of type isXXX
should return a bool value or be a property.
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.
I will use checkedValueChanged
as talked offline.
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.
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.
In the other hand, can we move Checkbox into Controls category?
🎉 This PR is included in version 11.2.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
We need to make the checkbox squared according to the new typology: https://app.zeplin.io/project/5d653c69f828bf7299c551c1/screen/5f5f84d1059b75441dcf9280
I've update the catalog with this changes, in case you want to check it in a device.
I'm also removing a couple of colors constants we do not need anymore.