<!--
{
  "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/init(local:stable:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "App Intents"
    ],
    "preciseIdentifier" : "s:10AppIntents24SyncableEntityIdentifierV5local6stableACyxq_Gx_q_tcfc"
  },
  "title" : "init(local:stable:)"
}
-->

# init(local:stable:)

Creates an identifier with both local and stable IDs.

```
init(local: LocalID, stable: StableID)
```

## Parameters

`local`

The device-specific identifier

`stable`

The cross-device stable identifier

## Discussion

Use this initializer when you use separate local and stable identifiers to refer to your entity.

---

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)