AccessibilityTextContentType

Textual context that assistive technologies can use to improve the presentation of spoken text.

StructureiOS 15.0+macOS 12.0+tvOS 15.0+watchOS 8.0+AccessibilityTextContentType in SwiftUI

Declaration

React
type AccessibilityTextContentType =
  | 'console'
  | 'fileSystem'
  | 'messaging'
  | 'narrative'
  | 'plain'
  | 'sourceCode'
  | 'spreadsheet'
  | 'wordProcessing';
Swift
struct AccessibilityTextContentType

Pass a literal, or build one with SwiftUI.AccessibilityTextContentType from import { SwiftUI } from 'swiftui-react-native'.

Type properties

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.