<!--
{
  "availability" : [
    "iOS: 17.0.0 -",
    "iPadOS: 17.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "RealityKit",
  "identifier" : "/documentation/RealityKit/ObjectCaptureSession/CaptureState/==(_:_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Operator",
  "symbol" : {
    "kind" : "Operator",
    "modules" : [
      "RealityKit",
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:19_RealityKit_SwiftUI20ObjectCaptureSessionC0F5StateO2eeoiySbAE_AEtFZ"
  },
  "title" : "==(_:_:)"
}
-->

# ==(_:_:)

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.

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

---

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)