<!--
{
  "availability" : [
    "visionOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "TabletopKit",
  "identifier" : "/documentation/TabletopKit/CustomAction/validate(snapshot:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "TabletopKit"
    ],
    "preciseIdentifier" : "s:11TabletopKit12CustomActionP8validate8snapshotSbAA13TableSnapshotV_tF"
  },
  "title" : "validate(snapshot:)"
}
-->

# validate(snapshot:)

Implement this function to detect whether the action is valid and should be applied given the state of the table represented by `snapshot`.
If not implemented, the action is always considered valid. It is important that the validation for a given action is only a function of the given snapshot and the
data of the action instance.

```
func validate(snapshot: TableSnapshot) -> Bool
```

## Parameters

`snapshot`

The state of the table to be used for this validation.

---

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)