---
title: "subscript(_:)"
framework: realitykit
role: symbol
role_heading: Instance Subscript
path: "realitykit/ikrig/constraintscollection/subscript(_:)"
---

# subscript(_:)

Accesses the element with the specified identifier.

## Declaration

```swift
subscript(id: IKRig.ConstraintsCollection.Element.ID) -> IKRig.ConstraintsCollection.Element? { get set }
```

## Parameters

- `id`: The identifier of the requested element.

## Overview

Overview note: Set nil to remove the element with matching identifier.
