---
title: UpdateCounterAction
framework: tabletopkit
role: symbol
role_heading: Structure
path: tabletopkit/updatecounteraction
---

# UpdateCounterAction

An action that updates the game counter.

## Declaration

```swift
struct UpdateCounterAction
```

## Overview

Overview To create an update counter action, use the updateCounter(_:context:) or the updateCounter(matching:value:context:) static method.

## Topics

### Getting counter information

- [counterID](tabletopkit/updatecounteraction/counterid.md)
- [newValue](tabletopkit/updatecounteraction/newvalue.md)

### Getting game-specific information

- [context](tabletopkit/updatecounteraction/context.md)

### Getting the player identifier

- [playerID](tabletopkit/updatecounteraction/playerid.md)

## Relationships

### Conforms To

- [Equatable](swift/equatable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)
- [TabletopAction](tabletopkit/tabletopaction.md)

## See Also

### Actions

- [TabletopAction](tabletopkit/tabletopaction.md)
- [MoveEquipmentAction](tabletopkit/moveequipmentaction.md)
- [UpdateEquipmentAction](tabletopkit/updateequipmentaction.md)
- [SetTurnAction](tabletopkit/setturnaction.md)
- [CreateBookmarkAction](tabletopkit/createbookmarkaction.md)
- [CustomAction](tabletopkit/customaction.md)
