---
title: "apply(table:)"
framework: tabletopkit
role: symbol
role_heading: Instance Method
path: "tabletopkit/customaction/apply(table:)"
---

# apply(table:)

Implement this function to perform the changes to the table state that this action represents. It is important that the code performed in this function is only a function of the provided table state and the data of the action instance.

## Declaration

```swift
func apply(table: inout TableState)
```

## Parameters

- `table`: The table to modify.
