Day 165

Run accessibility audits in the simulator

30 Oct 2022

The Accessibility Inspector let’s you run an audit of the current screen in your simulator or device. It can find some basic issues like color contrast issues, touch target sizes that are too small, etc. It can also provide with fix suggestions.

Audit functionality of the Accessibility Inspector. You can navigate to any screen you’ like to audit and select the “Run Audit” button. A list of possible issues will appear. Some examples are: hit area is too small, element has no description, potentially inaccessible text, dynamic text font sizes are partially unsupported… The options button will show a list of all the type of  issues it can find. You can unselect any of them. The options are: element description, contrast, hit region, element detection, clipped text, traits, and large text. Next to each issue found, there are two buttons. One of them takes a screenshot and highlights the area with the potential issue. The other one shows a fix suggestion. At the bottom of the screen, there is a clear warnings button.

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...

The Accessibility Inspector lets you configure on or off some of the most common accessibility options so you can conveniently observe how your app adopts these options in the simulator or device. You can also quickly select different text sizes.

The fastest way for testing Dynamic Type while developing, and to quickly see how your app's UI flows, is by using the "option + cmd + plus/minus" to increase/decrease the text size in your simulator.

If you are using SwiftUI to build your apps, there is a fairly basic but very useful Accessibility Inspector built right there in the Inspectors Panel, on the right side of Xcode.


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