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

IOS 6669 Make Checkbox Squared. #111

Merged
merged 9 commits into from
May 4, 2021
Merged

IOS 6669 Make Checkbox Squared. #111

merged 9 commits into from
May 4, 2021

Conversation

jmpg93
Copy link
Contributor

@jmpg93 jmpg93 commented Apr 28, 2021

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.

@jmpg93 jmpg93 requested review from yceballost and a team April 28, 2021 09:20
@jmpg93 jmpg93 self-assigned this Apr 28, 2021
@jmpg93 jmpg93 requested review from DavidMarinCalleja and cbarcom and removed request for a team April 28, 2021 09:20
Comment on lines 100 to 109
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
}
Copy link
Contributor

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

Copy link
Contributor Author

@jmpg93 jmpg93 Apr 28, 2021

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.

Copy link
Contributor

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.

Copy link
Contributor Author

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.

Copy link
Contributor

@DavidMarinCalleja DavidMarinCalleja left a comment

Choose a reason for hiding this comment

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

@jmpg93 jmpg93 merged commit 77455e1 into main May 4, 2021
@jmpg93 jmpg93 deleted the IOS-6669-update-checkbox branch May 4, 2021 08:11
tuentisre pushed a commit that referenced this pull request May 5, 2021
# [11.2.0](v11.1.2...v11.2.0) (2021-05-05)

### Bug Fixes

* **DarkMode:** Update neutralHigh and skeletonWave colors ([#113](#113)) ([19397f1](19397f1))

### Features

* **Controls:** Make Checkbox Squared. ([#111](#111)) ([77455e1](77455e1))
@tuentisre
Copy link
Collaborator

🎉 This PR is included in version 11.2.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants