<!--
{
  "availability" : [
    "iOS: 16.0.0 -",
    "iPadOS: 16.0.0 -",
    "macCatalyst: 16.0.0 -",
    "macOS: 13.0.0 -",
    "tvOS: 16.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "PhotoKit",
  "identifier" : "/documentation/Photos/PHPersistentChange",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "Photos"
    ],
    "preciseIdentifier" : "c:objc(cs)PHPersistentChange"
  },
  "title" : "PHPersistentChange"
}
-->

# PHPersistentChange

An object that represents a change in the Photos library, and allows for requesting local identifiers that identify the changes for a library object.

```
class PHPersistentChange
```

## Topics

### Getting the Change Token

[`var changeToken: PHPersistentChangeToken`](/documentation/Photos/PHPersistentChange/changeToken)

An opaque object that represents the state of Photos library.

[`class PHPersistentChangeToken`](/documentation/Photos/PHPersistentChangeToken)

An opaque object that tracks the state of the Photos library between runs, and that you can copy and serialize for future use.

### Getting the Change History

[`func changeDetails(for: PHObjectType) throws -> PHPersistentObjectChangeDetails`](/documentation/Photos/PHPersistentChange/changeDetails(for:))

Returns the change history that contains the local identifiers for object inserts, updates, and deletes.

[`class PHPersistentObjectChangeDetails`](/documentation/Photos/PHPersistentObjectChangeDetails)

An object that represents the local identifiers that change between requests using a change token.

## Relationships

### Conforms To

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

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

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

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

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

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

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

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

### Inherits From

[`NSObject-swift.class`](/documentation/ObjectiveC/NSObject-swift.class)

---

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)