UIAccessibilityTraits Roles for iOS developers

If you are an iOS developer then accessibility should be high on your list of priorities so that all users can utilize your app. Apple has added accessibility traits that are like Aria roles to determine what each element in your app can do. Some of these traits may include Titles, Headers, buttons and more. One that I find interesting is the UIAccessibilityTraitAllowsDirectInteraction trait. This allows the element to be interacted with without having to double tap on that element.

For more information on these traits, head over to the UIAccessibilityTraits documentation from Apple.

Leave a Reply