<!--
{
  "availability" : [
    "visionOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "TabletopKit",
  "identifier" : "/documentation/TabletopKit/TabletopInteraction/addAction(_:)-1cety",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "TabletopKit"
    ],
    "preciseIdentifier" : "s:11TabletopKit0A11InteractionC9addActionyyxAA0aE0RzlF"
  },
  "title" : "addAction(_:)"
}
-->

# addAction(_:)

Submit an action tied to this interaction. If the interaction gets canceled, all the associated actions will be automatically rolled back.

```
func addAction(_ action: some TabletopAction)
```

## Parameters

`action`

The action to submit.

---

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)