---
title: "init(local:stable:)"
framework: appintents
role: symbol
role_heading: Initializer
path: "appintents/syncableentityidentifier/init(local:stable:)"
---

# init(local:stable:)

Creates an identifier with both local and stable IDs.

## Declaration

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

## Parameters

- `local`: The device-specific identifier
- `stable`: The cross-device stable identifier

## Discussion

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