Contents

init(_:)

Creates a custom action category labeled by name.

Declaration

init(_ name: Text)

Discussion

Extension AccessibilityActionCategory { static let table = AccessibilityActionCategory(“Table Options”) }

var body: some View { TableCellView() .accessibilityActions(category: .table) { ForEach(tableCellActions) { action in Button(action.title) { action() } } } }

  • Parameter:

    • name: The name for the category of the accessibility actions.