AccessibilityTraits
A set of accessibility traits that describe how an element behaves.
Declaration
type AccessibilityTraits =
| ('allowsDirectInteraction'
| 'causesPageTurn'
| 'isButton'
| 'isHeader'
| 'isImage'
| 'isKeyboardKey'
| 'isLink'
| 'isModal'
| 'isSearchField'
| 'isSelected'
| 'isStaticText'
| 'isSummaryElement'
| 'isTabBar'
| 'isToggle'
| 'playsSound'
| 'startsMediaSession'
| 'updatesFrequently'
| AccessibilityTraitsChain)
| readonly ('allowsDirectInteraction'
| 'causesPageTurn'
| 'isButton'
| 'isHeader'
| 'isImage'
| 'isKeyboardKey'
| 'isLink'
| 'isModal'
| 'isSearchField'
| 'isSelected'
| 'isStaticText'
| 'isSummaryElement'
| 'isTabBar'
| 'isToggle'
| 'playsSound'
| 'startsMediaSession'
| 'updatesFrequently'
| AccessibilityTraitsChain)[];struct AccessibilityTraitsPass a literal, or build one with SwiftUI.AccessibilityTraits from import { SwiftUI } from 'swiftui-react-native'.
Used by
See also
More in Accessibility.
- AccessibilityActionCategoryDesignates an accessibility action category that is provided and named by the system.
- AccessibilityActionKindThe structure that defines the kinds of available accessibility actions.
- AccessibilityAdjustmentDirectionA directional indicator you use when making an accessibility adjustment.
- AccessibilityChildBehaviorDefines the behavior for the child elements of the new parent element.
- AccessibilityCustomContentKeyKey used to specify the identifier and label associated with an entry of additional accessibility information.
- AccessibilityDirectTouchOptionsAn option set that defines the functionality of a view's direct touch area.
- AccessibilityDirectTouchOptionsRawValueThe raw type that can be used to represent all values of the conforming type.
- AccessibilityHeadingLevelThe hierarchy of a heading in relation to other headings.
- AccessibilityLabeledPairRoleThe role of an accessibility element in a label / content pair.
- AccessibilitySystemRotorDesignates a Rotor that replaces one of the automatic, system-provided Rotors with a developer-provided Rotor.
- AccessibilityTextContentTypeTextual context that assistive technologies can use to improve the presentation of spoken text.
- AccessibilityTraitsChainAccessibilityTraits with chained calls: SwiftUI.AccessibilityTraits.intersection(...).