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

# HistoryChange

Values that describe data history transactions.

```
enum HistoryChange
```

## Topics

### Operations

[`case delete(any HistoryDelete)`](/documentation/SwiftData/HistoryChange/delete(_:))

A value that indicates a delete operation.

[`case insert(any HistoryInsert)`](/documentation/SwiftData/HistoryChange/insert(_:))

A value that indicates an insertion operation.

[`case update(any HistoryUpdate)`](/documentation/SwiftData/HistoryChange/update(_:))

A value that indicates an update operation.

### Getting information about a change

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

The persistent identifier of the change.

## Relationships

### Conforms To

[`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)