---
title: "==(_:_:)"
framework: realitykit
role: symbol
role_heading: Operator
path: "realitykit/objectcapturesession/capturestate/==(_:_:)"
---

# ==(_:_:)

Two states are defined equal if they have the same case.  Specifically, a .failed(Error) state will match any other failed state regardless of the actual error payload.

## Declaration

```swift
static func == (lhs: ObjectCaptureSession.CaptureState, rhs: ObjectCaptureSession.CaptureState) -> Bool
```
