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

# PHAdjustmentData

A description of the edits made to an asset’s photo, video, or Live Photo content, which allows your app to reconstruct or revert the effects of prior editing sessions.

```
class PHAdjustmentData
```

## Overview

When a user edits an asset, Photos saves a [`PHAdjustmentData`](/documentation/Photos/PHAdjustmentData) object along with the modified image or video data. This object provides an application-defined “recipe” you can use to reconstruct the edit. For example, if your app applies filters to a photo, you might create adjustment data that identifies which filters the user picked, the parameters for each, and the order to apply the filters in. Later, the user can resume working with those filters and parameters by using your app or another app that understands your adjustment data format. When iCloud Photos is enabled, a user can revert or resume edits made on a different device.

You work with adjustment data when editing an asset, using either the [`requestContentEditingInput(with:completionHandler:)`](/documentation/Photos/PHAsset/requestContentEditingInput(with:completionHandler:)) method or a photo extension view controller that implements the [`PHContentEditingController`](/documentation/PhotosUI/PHContentEditingController) protocol.

- When you begin an edit (through a [`PHContentEditingInput`](/documentation/Photos/PHContentEditingInput) object), examine the editing input’s [`adjustmentData`](/documentation/Photos/PHContentEditingInput/adjustmentData) property to decide whether the last edit made to the asset is compatible with your app. If so, you can allow the user to resume working with that edit. If not, you can make further edits to the last saved version of the photo.
- When you commit an edit (through a [`PHContentEditingOutput`](/documentation/Photos/PHContentEditingOutput) object), provide a new adjustment whose data represents the changes your app made.

For each asset, Photos stores only one [`PHAdjustmentData`](/documentation/Photos/PHAdjustmentData) object, representing the **most recent** edit made to the asset’s content.

## Topics

### Creating an Adjustment

[`-  initWithFormatIdentifier:formatVersion:data:`](/documentation/Photos/PHAdjustmentData/init(formatIdentifier:formatVersion:data:))

Initializes an adjustment object with the specified format and data.

### Identifying the Format of an Adjustment’s Data

[`formatIdentifier`](/documentation/Photos/PHAdjustmentData/formatIdentifier)

A string uniquely identifying the format of the adjustment data.

[`formatVersion`](/documentation/Photos/PHAdjustmentData/formatVersion)

A version number for the adjustment data format.

### Reading an Adjustment’s Data

[`data`](/documentation/Photos/PHAdjustmentData/data)

Data that contains the information necessary to reconstruct the adjustment.

## Relationships

### Conforms To

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

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

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

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

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

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

### 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)