Day 76

Move VoiceOver focus when UI expands

2 Aug 2022

Sometimes, you change your app's UI to offer more options as a result of a user's action. And in such cases, it might be a good idea to move VoiceOver's focus to these new options. We can do that by sending a layout changed notification.

Two examples from Apple where they seem to post a layout changed notification to UIAccessibility to move VoiceOver's focus to new options. First one is the reminders app. When double tapping the Date & Time button, there is a new bar that appears on top of it with some predefined date options, and the focus moves to the first option in the bar that appeared. The second is the camera app. At the top of the screen there is a camera controls button that is collapsed by default. If you expand it, some new options appear further down the screen, right after the zoom options, and VoiceOver focus will move to the first one of the new camera controls presented.

Some of you have asked me how you can support what I do. This would really help, and would be hugely appreciated:

  • Find these posts useful? Share them at work, on social media, or with anyone that might find them interesting. Let's spread the word!

  • Check out any of my apps or games: Xarra!, RetroRapid!, or Mestre!.

    • A download and a review go a long way. They're free by default. On the App Store, ratings and reviews really help more people discover them.

    • Finding any of them useful? If so, and if you can afford it, purchasing lifetime access to all features or subscribing lets me buy the coffee that keeps me caffeinated. Caffeine keeps me going to maintain the apps, bring in new features that I hope you'll love, and keep writing.

You may also find interesting...

Jan Jaap de Groot presented the ScreenReader app for An app to help anyone learn VoiceOver's gestures in a very creative and playful way.

When building custom components, or if not relying on UIControl's attributes to configure state, it can be easy to forget to specify the right accessibility traits. These are indispensable for a good experience with VoiceOver, Switch Control...

Custom actions work well with VoiceOver and Switch Control. It is also a way of speeding up navigation, and grouping all actions available for an item in a single place, with Full Keyboard Access. Focus an item and use the shortcut Tab (⇥) + Z.


Content © Daniel Devesa Derksen-Staats on Accessibility up to 11! is licensed under CC BY 4.0. License details