Values
Element Type Traits
Indicates the element behaves like a button and can be activated.
Indicates the element is a link that navigates to another location or view.
Indicates the element is a search field where users can enter search queries.
Indicates the element is an image. Assistive technologies may describe it differently than other elements.
Indicates the element represents a keyboard key.
Indicates the element contains static text that doesn’t change and isn’t interactive.
Indicates the element is a header or heading that labels a section of content.
State Traits
Indicates the element is currently selected. Used for items in lists, tabs, or other selectable components.
Indicates the element summarizes content when the app is inactive or minimized.
Indicates the element’s content updates frequently. Assistive technologies may poll it for changes.
Behavior Traits
Indicates that interacting with the element will play a sound.
Indicates that activating the element will start a media playback session.
Indicates the element allows direct touch interaction when using assistive technologies like VoiceOver.
Indicates that activating the element will cause a page turn in a paginated interface.
Indicates the element presents modal content that must be dismissed before interacting with other content.
Usage
Notes
- Multiple traits can be added to a single element using an array
- Traits help assistive technologies like VoiceOver provide appropriate context and interaction patterns
- Some components have default traits (e.g., Button automatically has
isButton) - Use
accessibilityAddTraits()to add traits andaccessibilityRemoveTraits()to remove them - Proper trait usage significantly improves the accessibility of your application
