Traits of a good accessible iOS app

Dani Devesa
Level Up Coding
Published in
8 min readJan 14, 2021

--

You may know that you can configure a UI component with an accessibility label. The accessibility label is the name of the component. You can also configure an accessibility trait. The accessibility trait is the role of the component, it gives the user information on how they can interact with it. When using VoiceOver, the trait is usually vocalised after the accessibility label.

Every UI control in your app has an accessibilityTraits property (which is part of the UIAccessibility protocol). Under the hood, it is a bitmask that defines which ones of the different…

--

--

Software Engineer — #iOS @Spotify. I wrote a book: “Developing Accessible iOS Apps”. Opinions are my own.