One Logo Pool Ball
SwiftUICore · IOS API REFERENCE

AccessibilityCustomContentKey

struct · iOS 15.0+ · SDK 27.1

struct AccessibilityCustomContentKey

Key used to specify the identifier and label associated with an entry of additional accessibility information. Use `AccessibilityCustomContentKey` and the associated modifiers taking this value as a parameter in order to simplify clearing or replacing entries of additional information that are manipulated from multiple places in your code.

Members (5)

init · iOS 16.0+

init

TypeScript
static initId(label: _Foundation_LocalizedStringResource, id: string): AccessibilityCustomContentKey
Swift declaration
@export(implementation) init(_ label: LocalizedStringResource, id: String)

Create an `AccessibilityCustomContentKey` with the specified label and identifier. - Parameter label: Localized text describing to the user what is contained in this additional information entry. For example: "orientation". - Parameter id: String used to identify the additional information entry to SwiftUI. Adding an entry will replace any previous value with the same identifier.

init · iOS 15.0+

init

TypeScript
static initId98528(labelKey: LocalizedStringKey, id: string): AccessibilityCustomContentKey
Swift declaration
init(_ labelKey: LocalizedStringKey, id: String)

Create an `AccessibilityCustomContentKey` with the specified label and identifier. - Parameter labelKey: Localized text describing to the user what is contained in this additional information entry. For example: "orientation". - Parameter id: String used to identify the additional information entry to SwiftUI. Adding an entry will replace any previous value with the same identifier.

init · iOS 15.0+

init

TypeScript
static initId12589(label: Text, id: string): AccessibilityCustomContentKey
Swift declaration
init(_ label: Text, id: String)

Create an `AccessibilityCustomContentKey` with the specified label and identifier. - Parameter label: Localized text describing to the user what is contained in this additional information entry. For example: "orientation". - Parameter id: String used to identify the additional information entry to SwiftUI. Adding an entry will replace any previous value with the same identifier.

init · iOS 26.0+

init

TypeScript
static init(label: _Foundation_LocalizedStringResource): AccessibilityCustomContentKey
Swift declaration
init(_ label: LocalizedStringResource)

Create an `AccessibilityCustomContentKey` with the specified label. - Parameter label: Localized text describing to the user what is contained in this additional information entry. For example: "orientation". This will also be used as the identifier.

init · iOS 15.0+

init

TypeScript
static init3514(labelKey: LocalizedStringKey): AccessibilityCustomContentKey
Swift declaration
init(_ labelKey: LocalizedStringKey)

Create an `AccessibilityCustomContentKey` with the specified label. - Parameter labelKey: Localized text describing to the user what is contained in this additional information entry. For example: "orientation". This will also be used as the identifier.

Skipped declarations

No declarations were skipped in this snapshot.

All SwiftUICore types →