Voice over focus remains on tabbar

By Leanne, 31 January, 2018

Forum
App Development and 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 ;)

Leanne

Options

Comments

By TJT 2001 on Friday, February 23, 2018 - 04:52

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.

By Leanne on Friday, February 23, 2018 - 04:52

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