---
title: "register(action:)"
framework: tabletopkit
role: symbol
role_heading: Instance Method
path: "tabletopkit/tablesetup/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.

## Declaration

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

## Parameters

- `type`: The type of the custom action.
