AccessibilityTextContentType
Textual context that assistive technologies can use to improve the presentation of spoken text.
Declaration
type AccessibilityTextContentType =
| 'console'
| 'fileSystem'
| 'messaging'
| 'narrative'
| 'plain'
| 'sourceCode'
| 'spreadsheet'
| 'wordProcessing';struct AccessibilityTextContentTypePass a literal, or build one with SwiftUI.AccessibilityTextContentType from import { SwiftUI } from 'swiftui-react-native'.
Type properties
'console'SwiftUI.AccessibilityTextContentType.consoleA type that represents text used for input, like in the Terminal app.
'fileSystem'SwiftUI.AccessibilityTextContentType.fileSystemA type that represents text used by a file browser, like in the Finder app in macOS.
'messaging'SwiftUI.AccessibilityTextContentType.messagingA type that represents text used in a message, like in the Messages app.
'narrative'SwiftUI.AccessibilityTextContentType.narrativeA type that represents text used in a story or poem, like in the Books app.
'plain'SwiftUI.AccessibilityTextContentType.plainA type that represents generic text that has no specific type.
'sourceCode'SwiftUI.AccessibilityTextContentType.sourceCodeA type that represents text used in source code, like in Swift Playgrounds.
'spreadsheet'SwiftUI.AccessibilityTextContentType.spreadsheetA type that represents text used in a grid of data, like in the Numbers app.
'wordProcessing'SwiftUI.AccessibilityTextContentType.wordProcessingA type that represents text used in a document, like in the Pages app.
Overview
Use an AccessibilityTextContentType value when setting the accessibility text content
type of a view using the View.accessibilityTextContentType(_:) modifier.
From Apple’s SwiftUI documentation. Code samples there are Swift.
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.
- AccessibilityTraitsA set of accessibility traits that describe how an element behaves.
- AccessibilityTraitsChainAccessibilityTraits with chained calls: SwiftUI.AccessibilityTraits.intersection(...).