Is it possible using VoiceOver on the iPhone to announce the updated text on a label if it changes?
This would be analogous to a live-region in ARIA.
Thanks.
Is it possible using VoiceOver on the iPhone to announce the updated text on a label if it changes?
This would be analogous to a live-region in ARIA.
Thanks.
You can make VoiceOver announce any text you like with:
If a label should announce its text as soon as it is updated, simply extend the
UILabel
and override thesetText
method.The .h File:
And its implementation:
This worked perfectly for me :)
Here is the Swift 4 version