<!--
{
  "availability" : [
    "visionOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "TabletopKit",
  "identifier" : "/documentation/TabletopKit/ScoreCounter",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "TabletopKit"
    ],
    "preciseIdentifier" : "s:11TabletopKit12ScoreCounterV"
  },
  "title" : "ScoreCounter"
}
-->

# ScoreCounter

An object that keeps a score in a tabletop game.

```
struct ScoreCounter
```

## Topics

### Creating score counters

[`init(id: ScoreCounter.ID, value: Int64)`](/documentation/TabletopKit/ScoreCounter/init(id:value:))

Creates a score counter with a unique identifier and initial value.

### Getting score counter identifiers

[`var id: ScoreCounter.ID`](/documentation/TabletopKit/ScoreCounter/id)

A unique identifier for the score counter.

[`struct Identifier`](/documentation/TabletopKit/ScoreCounter/Identifier)

A unique identifier for score counters.

### Getting score counter values

[`var value: Int64`](/documentation/TabletopKit/ScoreCounter/value)

The current value of the score counter.

## Relationships

### Conforms To

[`Sendable`](/documentation/Swift/Sendable)

[`Identifiable`](/documentation/Swift/Identifiable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

---

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)