<!--
{
  "availability" : [
    "iOS: 18.0.0 -",
    "iPadOS: 18.0.0 -",
    "macOS: 15.0.0 -",
    "tvOS: 18.0.0 -",
    "visionOS: 2.0.0 -",
    "watchOS: 11.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/View/accessibilityAction(intent:label:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "SwiftUI",
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI4ViewP012_AppIntents_aB0E19accessibilityAction6intent5labelQrqd___qd_0_yXEt0dE00D6IntentRd__AaBRd_0_r0_lF"
  },
  "title" : "accessibilityAction(intent:label:)"
}
-->

# 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.

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

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)