Declaration
compose().accessibilityTextContentType(
value: SwiftUI.AccessibilityTextContentType
)nonisolated func accessibilityTextContentType(
_ value: AccessibilityTextContentType
) -> TextParameters
The accessibility content type from the available
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.
If you don't set a value with this method, the default content type
is AccessibilityTextContentType.plain.
AccessibilityTextContentType options.
See also
More in Text modifiers.
- accessibilityHeadingSets the accessibility level of this heading.
- accessibilityLabelAdds a label to the view that describes its contents.
- baselineOffsetSets the vertical offset for the text relative to its baseline.
- boldApplies a bold font weight to the text.
- fontSets the default font for text in the view.
- fontDesignSets the font design of the text.
- fontWeightSets the font weight of the text.
- fontWidthSets the font width of the text.
- foregroundStyleSets the style of the text displayed by this view.
- italicApplies italics to the text.
- kerningSets the spacing, or kerning, between characters.
- monospacedModifies the font of the text to use the fixed-width variant of the current font, if possible.