Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ios VoiceOver focus not moving beyond navigation bar

VoiceOver focus not moving beyond navigation items. I am swiping right but focus trapped on the last element of navigation item. Probably it should move to the first element of the ViewController view. I have set accessibilityElements and made each element isAccessibilityElement = true. If I try to tap on any element of the ViewController view the focus trapped to status bar.

like image 439
Shashank Kaushik Avatar asked Oct 16 '22 11:10

Shashank Kaushik


1 Answers

I have noticed that sometimes testing VO has some funky issues like this when testing while logging (you are running on your device through Xcode). If you run it by launching the icon, rather than running it in Xcode, it may work normally.

If not, you can force focus on the first item outside your navigation by posting a UIAccessibility notification in a method like viewWillAppear:

UIAccessibility.post(notification: UIAccessibility.Notification.screenChanged, argument: whateverelementyouwantfocused)
like image 196
D. Pratt Avatar answered Nov 15 '22 07:11

D. Pratt