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

Improve accessibility by announcing changed values #15

Merged
merged 3 commits into from Sep 21, 2018

Conversation

marcuswu
Copy link

This change announces the changed value. I do it in the animation check because it's not necessary to announce the value change during initialization. If you want to suggest a better way to do this, I'm open to ideas.

@cocoatoucher
Copy link
Owner

Hey sorry for the delay, I think it looks good. Do you mind bumping a new version for the pod spec as well?

@marcuswu
Copy link
Author

Sure, just pushed up a version bump

@@ -176,6 +176,7 @@ import UIKit
// Animate to new state
if animated {
self.addAnimations(desiredSelectedState: isSelectedInternal)
self.accessibilityValue = isSelected ? "checked" : "unchecked"
Copy link
Owner

Choose a reason for hiding this comment

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

@marcuswu I also noticed indentation looks weird here, is it same for you?

Copy link
Author

Choose a reason for hiding this comment

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

Fixed -- I had spaces vs the rest of the file which uses tabs. It appeared the same in my editor.

@marcuswu
Copy link
Author

Does it look good? I'm happy to make further changes if necessary.

@cocoatoucher cocoatoucher merged commit 2425e7a into cocoatoucher:master Sep 21, 2018
@cocoatoucher
Copy link
Owner

cocoatoucher commented Sep 21, 2018

Hey @marcuswu sorry again for the delay 😔 and thanks for your contribution
Also pushed 1.0.3 to cocoapods (https://cocoapods.org/pods/AIFlatSwitch)

@marcuswu
Copy link
Author

Awesome, thanks!

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.

None yet

2 participants