<!--
{
  "availability" : [
    "visionOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "TabletopKit",
  "identifier" : "/documentation/TabletopKit/ScoreCounter/init(id:value:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "TabletopKit"
    ],
    "preciseIdentifier" : "s:11TabletopKit12ScoreCounterV2id5valueA2C10IdentifierV_s5Int64Vtcfc"
  },
  "title" : "init(id:value:)"
}
-->

# init(id:value:)

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

```
init(id: ScoreCounter.ID, value: Int64 = 0)
```

## Parameters

`id`

A unique identifier of the score counter.

`value`

The initial value of the score counter.

---

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)