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

# subscript(of:id:)

Returns and/or modifies the state for the equipment with given identifier and matching type.

```
subscript<E>(of type: E.Type, id equipmentID: EquipmentIdentifier) -> E.State? where E : Equipment { get set }
```

## Parameters

`type`

The type of the equipment.

---

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)