<!--
{
  "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/HistoryToken",
  "metadataVersion" : "0.1.0",
  "role" : "Protocol",
  "symbol" : {
    "kind" : "Protocol",
    "modules" : [
      "SwiftData"
    ],
    "preciseIdentifier" : "s:9SwiftData12HistoryTokenP"
  },
  "title" : "HistoryToken"
}
-->

# HistoryToken

```
protocol HistoryToken : Comparable, Decodable, Encodable, Hashable, Identifiable, Sendable
```

## Topics

### Associated Types

[`associatedtype TokenType : Decodable, Encodable, Hashable, Sendable`](/documentation/SwiftData/HistoryToken/TokenType)

### Instance Properties

[`var storeIdentifier: String`](/documentation/SwiftData/HistoryToken/storeIdentifier)

The on-disk identifier of the data store this token covers.

[`var tokenValue: Self.TokenType?`](/documentation/SwiftData/HistoryToken/tokenValue)

## Relationships

### Inherits From

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

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

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

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

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

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

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

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

### Conforming Types

[`DefaultHistoryToken`](/documentation/SwiftData/DefaultHistoryToken)

---

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)