One Logo Pool Ball
Accessibility · IOS API REFERENCE

AttributeScopes.AccessibilityAttributes.TextualContextAttribute

enum · iOS 15.0+ · SDK 27.1

@frozen enum TextualContextAttribute

An attribute for the textual context. 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. - Note: This attribute is not used on macOS

Members (5)

get · iOS 15.0+

markdownName

TypeScript
static get markdownName(): string
Swift declaration
static let markdownName: String

The Markdown name associated with an attributed string key.

static · iOS 15.0+

decodeMarkdown

TypeScript
static decodeMarkdown(decoder: SDKHandle): AttributeScopes_AccessibilityAttributes_TextualContextAttribute_TextualContext
Swift declaration
static func decodeMarkdown(from decoder: any Decoder) throws -> AttributeScopes.AccessibilityAttributes.TextualContextAttribute.TextualContext

Decodes a value from the provided decoder. This method throws an error if reading from the decoder fails, or if the data read is corrupted or otherwise invalid. - Parameter decoder: The decoder to read data from. - Returns: The decoded value.

static · iOS 15.0+

objectiveCValue

TypeScript
static objectiveCValue(value: AttributeScopes_AccessibilityAttributes_TextualContextAttribute_TextualContext): _Foundation_NSString
Swift declaration
static func objectiveCValue(for value: AttributeScopes.AccessibilityAttributes.TextualContextAttribute.TextualContext) throws -> NSString

Returns an Objective-C typed value for a given value of this key's type. - Parameter value: The value to convert. - Returns: `value`, expressed as the Objective-C type defined by ``ObjectiveCConvertibleAttributedStringKey/ObjectiveCValue``.

get · iOS 15.0+

name

TypeScript
static get nameValue(): string
Swift declaration
static var name: String { get }

The name of the key.

static · iOS 15.0+

value

TypeScript
static value(object: _Foundation_NSString): AttributeScopes_AccessibilityAttributes_TextualContextAttribute_TextualContext
Swift declaration
static func value(for object: NSString) throws -> AttributeScopes.AccessibilityAttributes.TextualContextAttribute.TextualContext

Returns a value of this key's type for a given Objective-C value. - Parameter object: The Objective-C value to convert. - Returns: `object`, expressed as this key's type.

Skipped declarations

No declarations were skipped in this snapshot.

All Accessibility types →