This PR contain improvement of progress bar accessibility.
They might be some optimization to do for example :
How to copy localized string of standard UIProgressView (not sure how to do it with Swift)
Context
Progress bar was not accessible with voiceover, meaning that if a blind user encounter a Progress there were no focus on this element so the user has no idea of what's going on.
What I have done is :
Letting end user add custom accessibilityLabel for exemple "Loading new products in progress".
announcing percentage update in accessibilityValue
If no custom accessibilityLabel, setting UIProgressView default accessibilityLabel
What could be improved :
swift syntax probably as it is not my main language.
add an animated progress bar in Showcase to validate that value is well announced with VoiceOver when percentage change
Checklist
[x] Make sure you are requesting to pull a topic/feature/bugfix branch. Please, don't request directly from your main!
Changes description
This PR contain improvement of progress bar accessibility. They might be some optimization to do for example :
Context
Progress bar was not accessible with voiceover, meaning that if a blind user encounter a Progress there were no focus on this element so the user has no idea of what's going on. What I have done is :
What could be improved :
Checklist
Does this introduce a breaking change?
Screenshots
iPhone/iPad
Start VoiceOver on your phone and set focus on different ProgressBar in the Showcase app
Other information