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

# HistoryUpdate

```
protocol HistoryUpdate<Model> : Sendable
```

## Topics

### Associated Types

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

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

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

### Instance Properties

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

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

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

[`var updatedAttributes: [any PartialKeyPath<Self.Model> & Sendable]`](/documentation/SwiftData/HistoryUpdate/updatedAttributes)

### Type Aliases

[`typealias PropertyUpdate`](/documentation/SwiftData/HistoryUpdate/PropertyUpdate)

## Relationships

### Conforming Types

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

### Inherits From

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

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

---

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)