Contents

accessibilityAction(intent:label:)

Adds an accessibility action labeled by the contents of label to the view. Actions allow assistive technologies, such as the VoiceOver, to interact with the view by invoking the action. When the action is performed, the intent will be invoked.

Declaration

nonisolated func accessibilityAction<I, Label>(intent: I, @ViewBuilder label: () -> Label) -> some View where I : AppIntent, Label : View

See Also

Adding actions to views