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

# actionWasConfirmed(_:oldSnapshot:newSnapshot:)

Called once for each action which passed validation in the update in
which it is confirmed as a part of the shared network table state.
All players in a network session are guaranteed to observe the same sequence
of `actionWasConfirmed` and `actionWasRolledBack` callbacks.
In a network session, these callbacks are delayed behind `actionIsPending`
callbacks by approximately a network round trip time.

```
func actionWasConfirmed(_ action: some TabletopAction, oldSnapshot: TableSnapshot, newSnapshot: TableSnapshot)
```

---

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)