accessibilitySpeechLanguage
A key that indicates the language to use when speaking a string.
Declaration
nonisolated static let accessibilitySpeechLanguage: NSAttributedString.KeyDiscussion
The value of this key is an NSString object that contains a BCP 47 language code. When applying it to text in a string, the rules for the specified language govern how to pronounce that string.
See Also
Getting accessibility attribute keys
accessibilityAlignmentaccessibilityAnnotationTextAttributeaccessibilityAttachmentaccessibilityAutocorrectedaccessibilityBackgroundColoraccessibilityCustomTextaccessibilityFontaccessibilityFontBoldAttributeaccessibilityFontItalicAttributeaccessibilityForegroundColoraccessibilityLanguageaccessibilityLinkaccessibilityListItemIndexaccessibilityListItemLevelaccessibilityListItemPrefix