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

# HistoryInsert

```
protocol HistoryInsert<Model> : Sendable
```

## Topics

### Associated Types

[`associatedtype ChangeIdentifier : Comparable, Hashable, Sendable`](/documentation/SwiftData/HistoryInsert/ChangeIdentifier-swift.associatedtype)

[`associatedtype Model : PersistentModel`](/documentation/SwiftData/HistoryInsert/Model)

[`associatedtype TransactionIdentifier : Comparable, Hashable, Sendable`](/documentation/SwiftData/HistoryInsert/TransactionIdentifier-swift.associatedtype)

### Instance Properties

[`var changeIdentifier: Self.ChangeIdentifier`](/documentation/SwiftData/HistoryInsert/changeIdentifier-swift.property)

[`var changedPersistentIdentifier: PersistentIdentifier`](/documentation/SwiftData/HistoryInsert/changedPersistentIdentifier)

[`var transactionIdentifier: Self.TransactionIdentifier`](/documentation/SwiftData/HistoryInsert/transactionIdentifier-swift.property)

## Relationships

### Conforming Types

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

### Inherits From

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

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

---

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)