Expo UI and Router for iOS
Modifiers

accessibilityAddTraits

Adds the given accessibility traits to the view.

accessibilityAddTraits(traits)

ParameterTypeDescription
traitsAccessibilityTrait[]The accessibility traits to add. isToggle and isTabBar require iOS 17+ and are ignored on older systems.

Adds the given accessibility traits to the view.

Returns: ModifierConfig

See: Official SwiftUI documentation.

Works with

This modifier works with any view. These components accept it:

Sources

The original Expo docs for this page:

On this page