<!--
{
  "availability" : [
    "iOS: 18.0.0 -",
    "iPadOS: 18.0.0 -",
    "macCatalyst: 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/accessibilityActions(category:_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI4ViewPAAE20accessibilityActions8category_QrAA27AccessibilityActionCategoryV_qd__yXEtAaBRd__lF"
  },
  "title" : "accessibilityActions(category:_:)"
}
-->

# accessibilityActions(category:_:)

Adds multiple accessibility actions to the view with a specific
category. Actions allow assistive technologies, such as VoiceOver,
to interact with the view by invoking the action and are grouped by
their category. When multiple action modifiers with an equal category
are applied to the view, the actions are combined together.

```
nonisolated func accessibilityActions<Content>(category: AccessibilityActionCategory, @ContentBuilder _ content: () -> Content) -> some View where Content : View
```

## Parameters

`category`

The category the accessibility actions are grouped by.

`content`

The accessibility actions added to the view.

## Discussion

var body: some View {
EditorView()
.accessibilityActions(category: .edit) {
ForEach(editActions) { action in
Button(action.title) {
action()
}
}
if hasTextSuggestions {
Button(“Show Text Suggestions”) {
presentTextSuggestions()
}
}
}
}

---

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)