<!--
{
  "availability" : [
    "iOS: 18.0.0 -",
    "iPadOS: 18.0.0 -",
    "macCatalyst: 18.0.0 -",
    "macOS: 15.0.0 -",
    "swift: 5.9.0 -",
    "tvOS: 18.0.0 -",
    "visionOS: 2.0.0 -",
    "watchOS: 11.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftData",
  "identifier" : "/documentation/SwiftData/DataStoreSnapshotCodingKey",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "SwiftData"
    ],
    "preciseIdentifier" : "s:9SwiftData0B22StoreSnapshotCodingKeyO"
  },
  "title" : "DataStoreSnapshotCodingKey"
}
-->

# DataStoreSnapshotCodingKey

The key space to use when implementing custom coders and decoders for data store snapshots,

```
enum DataStoreSnapshotCodingKey
```

## Topics

### Creating a coding key

  ``init(intValue:)`

### Values that describe coding keys

[`case persistentIdentifier`](/documentation/SwiftData/DataStoreSnapshotCodingKey/persistentIdentifier)

A value that represents a persistent identifier.

### Instance Properties

### Enumeration Cases

[`case modeledProperty(String)`](/documentation/SwiftData/DataStoreSnapshotCodingKey/modeledProperty(_:))

A value that represents the name of the modeled property.

## Relationships

### Conforms To

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`CustomStringConvertible`](/documentation/Swift/CustomStringConvertible)

[`Sendable`](/documentation/Swift/Sendable)

[`CodingKey`](/documentation/Swift/CodingKey)

[`CustomDebugStringConvertible`](/documentation/Swift/CustomDebugStringConvertible)

---

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)