AccessibilityCustomContentKey
Key used to specify the identifier and label associated with an entry of additional accessibility information.
Declaration
type AccessibilityCustomContentKey =
| { label: string; id: string; }
| { labelKey: string; id: string; }
| string;struct AccessibilityCustomContentKeyOverview
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.
- AccessibilityActionCategoryDesignates an accessibility action category that is provided and named by the system.
- AccessibilityActionKindThe structure that defines the kinds of available accessibility actions.
- AccessibilityAdjustmentDirectionA directional indicator you use when making an accessibility adjustment.
- AccessibilityChildBehaviorDefines the behavior for the child elements of the new parent element.
- AccessibilityDirectTouchOptionsAn option set that defines the functionality of a view's direct touch area.
- AccessibilityDirectTouchOptionsRawValueThe raw type that can be used to represent all values of the conforming type.
- AccessibilityHeadingLevelThe hierarchy of a heading in relation to other headings.
- AccessibilityLabeledPairRoleThe role of an accessibility element in a label / content pair.
- AccessibilitySystemRotorDesignates a Rotor that replaces one of the automatic, system-provided Rotors with a developer-provided Rotor.
- AccessibilityTextContentTypeTextual context that assistive technologies can use to improve the presentation of spoken text.
- AccessibilityTraitsA set of accessibility traits that describe how an element behaves.
- AccessibilityTraitsChainAccessibilityTraits with chained calls: SwiftUI.AccessibilityTraits.intersection(...).