Voice over focus remains on tabbar

App Development & Programming

I am busy building a swift app and making it accessible.
I am having trouble with the tabbar voice over selected state.
When clicking on the tabbar item the first time, the voice over focuses on the navigation item, which is perfect, however, when navigating through the app and the user clicks the tabbar item again, the voice over focus remains on the tabbar.

I have already tried UIAccessibilityPostNotification(UIAccessibilityScreenChangedNotification) in the viewDidAppear method of the viewcontroller, but this does not reset the focus to the element I want.

Any ideas how I can reset the selected voice over to the view instead of the tabbar?

Thanks in advance ;)




Submitted by TJT 2001 on Wednesday, January 31, 2018

Just to clarify, are you saying that when a VoiceOver user taps something on the tab bar (which I assume is something analogous to the Clock app in iOS), you want focus to immediately jump to a certain item on the screen?

If this is the case, I would say that, unless there is a very, very specific reason why you want focus to automatically jump somewhere else (and I have never seen this before), I do not recommend that you automatically shift the focus away from the tab bar. Many VoiceOver users would likely be startled by what has happened, and it is also inconsistent with standard VoiceOver interaction.

Submitted by Leanne on Wednesday, January 31, 2018

In reply to by TJT 2001

Yes, that is what I am trying to achieve.
But if this is "normal" behaviour, then I agree that I should not override this.

Thanks for the feedback