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

# register(action:)

Register a custom action of given type. Each type of custom action needs to be registered before it can be used.

```
mutating func register<Action>(action type: Action.Type) where Action : BitwiseCopyable, Action : CustomAction
```

## Parameters

`type`

The type of the custom action.

---

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)