The accessibility content type from the available Accessibility
options.
Instance Method
インスタンスメソッド
accessibility
accessibilityTextContentType(_:)
Sets an accessibility text content type.
Availability 有効性
- iOS 15.0+
- iPadOS 15.0+
- macOS 12.0+
- Mac Catalyst 15.0+
- tvOS 15.0+
- watchOS 8.0+
Technology
- Swift
UI
Declaration 宣言
func accessibilityTextContentType(_ textContentType: AccessibilityTextContentType
) -> ModifiedContent
<Content, Modifier>
Available when
Modifier
is AccessibilityAttachmentModifier
.Parameters パラメータ
value
Text Content Type
Discussion 議論
Use this modifier to set the content type of this accessibility element. Assistive technologies can use this property to choose an appropriate way to output the text. For example, when encountering a source coding context, VoiceOver could choose to speak all punctuation.
The default content type plain
.