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

# contains(_:)

Returns a Boolean value indicating whether the set contains the given layer.

## Declaration

```swift
func contains(_ layer: RenderLayer) -> Bool
```

## See Also

### Inspecting the set

- [count](realitykit/renderlayer/set/count.md)
- [isEmpty](realitykit/renderlayer/set/isempty.md)
