<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "macCatalyst: -",
    "macOS: 27.0.0 -",
    "tvOS: 27.0.0 -",
    "visionOS: 27.0.0 -",
    "watchOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppIntents",
  "identifier" : "/documentation/AppIntents/SyncableEntityIdentifier/==(_:_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Operator",
  "symbol" : {
    "kind" : "Operator",
    "modules" : [
      "App Intents",
      "AppIntents"
    ],
    "preciseIdentifier" : "s:10AppIntents24SyncableEntityIdentifierV2eeoiySbACyxq_G_AEtFZ"
  },
  "title" : "==(_:_:)"
}
-->

# ==(_:_:)

Two identifiers are equal when they have the same shape **and** the same
values: both-local compares local IDs (ignoring stable), both-stable-only
compares stable IDs.  Mixed shapes (one has local, the other doesn’t) are
never equal — this keeps the Hashable contract intact since each shape
hashes a different component.

```
static func == (lhs: SyncableEntityIdentifier<LocalID, StableID>, rhs: SyncableEntityIdentifier<LocalID, StableID>) -> 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)