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

# contains(_:)

Returns a Boolean value that indicates whether the collection contains an element with a specific identifier.

## Declaration

```swift
func contains(_ id: IKRig.ConstraintsCollection.Element.ID) -> Bool
```

## Parameters

- `id`: The identifier of the element to look up.
