<!--
{
  "availability" : [
    "visionOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "TabletopKit",
  "identifier" : "/documentation/TabletopKit/TabletopGame/Observer/actionWasCancelled(_:reason:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "TabletopKit"
    ],
    "preciseIdentifier" : "s:11TabletopKit0A4GameC8ObserverP18actionWasCancelled_6reasonyqd___AC24ActionCancellationReasonOtAA0aI0Rd__lF"
  },
  "title" : "actionWasCancelled(_:reason:)"
}
-->

# actionWasCancelled(_:reason:)

Called once for each action which was later cancelled from the shared
network table state after being confirmed due to the action of either a
`jumpToBookmark` operation or due to an interaction that added it or an
action it depended on being cancelled.
`actionWasCancelled` callbacks are also reliably ordered with
`actionWasConfirmed` and `actionWasRolledBack` callbacks.

```
func actionWasCancelled(_ action: some TabletopAction, reason: TabletopGame.ActionCancellationReason)
```

---

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)