AccessibilityCustomContentKey

Key used to specify the identifier and label associated with an entry of additional accessibility information.

StructureiOS 15.0+macOS 12.0+tvOS 15.0+watchOS 8.0+AccessibilityCustomContentKey in SwiftUI

Declaration

React
type AccessibilityCustomContentKey =
  | { label: string; id: string; }
  | { labelKey: string; id: string; }
  | string;
Swift
struct AccessibilityCustomContentKey

Overview

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.

From Apple’s SwiftUI documentation. Code samples there are Swift.

Used by

See also

More in Accessibility.