-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
UIAccessibility usability improvements for VoiceOver #535
base: master
Are you sure you want to change the base?
Conversation
…rminate progress accessibilityValues to percentages.
👏 Thank you for taking interest in this. I'm putting this on my TODO list for testing. Thanks! |
This is definitely an improvement. Awesome work @mathewa6! 👍 I do see the focus switch between the HUD and the previously select element midway through progress. https://cl.ly/32ba0000d2e0 Would also be great to read the label if the indicator has one. |
Thanks. I had to find my notes from when I worked on this to figure out why I hadn't read the label automatically. It seems like I couldn't simply set the accessibilityLabel on the UIActivityIndicatorView to use the self.label text for some reason. (Maybe I'm missing something?). The other option would be to set the entire MBProgressHUD to be its own accessibilityElement whose label and traits are changed depending on the internal classes used, which I thought is best saved for a bigger PR. |
Took a closer look at this. While I believe that making the whole indicator a single accessibility element would be a nicer solution, I still think this is a step in the right direction and improves the behavior over the current one. One problem is that "Progress" isn't really localized. Taking the label value, when set, would make that better, as I would assume the host app would already make sure the label text is localized. |
Thanks @matej ! I've made 2 additional commits, the first of which directly addresses the feedback you've posted. The second uses KVO on the label's text property and then uses that as accessibilityLabel on the indicator. I've hence removed label as an accessibilityLabel except for text only and custom modes to prevent redundant VoiceOver speech. Do note that this does result in an additional call to |
Thanks for the library! I came across it on Twitter after it was listed in the top downloaded pods.
Since most of this project is based on UIKit elements, it is accessible. However, there are some usability issues that get in the way of a VoiceOver (VO) user being aware of what is happening on screen.
This PR attempts to address these issues in a non intrusive manner. All tests passing on my end.
These changes do the following:
Happy to make changes as needed.
TLDR: Heres a 20s video(no audio): Just pay attention to the VO focus box.