<!--
{
  "availability" : [
    "visionOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "TabletopKit",
  "identifier" : "/documentation/TabletopKit/CounterCollection/subscript(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Subscript",
  "symbol" : {
    "kind" : "Instance Subscript",
    "modules" : [
      "TabletopKit"
    ],
    "preciseIdentifier" : "s:11TabletopKit17CounterCollectionVys5Int64VSgAA05ScoreC0V10IdentifierVcip"
  },
  "title" : "subscript(_:)"
}
-->

# subscript(_:)

Queries or modifies the value of the score counter with given identifier.

```
subscript(id: ScoreCounter.ID) -> Int64? { get set }
```

## Parameters

`id`

The identifier of the score counter to be returned.

---

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)