<!--
{
  "availability" : [
    "iOS: 8.0.0 -",
    "iPadOS: 8.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.15.0 -",
    "tvOS: 10.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "PhotoKit",
  "identifier" : "/documentation/Photos/PHContentEditingInputRequestID",
  "metadataVersion" : "0.1.0",
  "role" : "Type Alias",
  "symbol" : {
    "kind" : "Type Alias",
    "modules" : [
      "Photos"
    ],
    "preciseIdentifier" : "c:@T@PHContentEditingInputRequestID"
  },
  "title" : "PHContentEditingInputRequestID"
}
-->

# PHContentEditingInputRequestID

An identifier for an asset content editing session.

```
typealias PHContentEditingInputRequestID = Int
```

## Discussion

To begin editing the content of an asset, call the [`requestContentEditingInput(with:completionHandler:)`](/documentation/Photos/PHAsset/requestContentEditingInput(with:completionHandler:)) method to retrieve a [`PHContentEditingInput`](/documentation/Photos/PHContentEditingInput) object that provides data for editing. This method asynchronously prepares an editing input and calls your completion handler block when the editing input is ready. To abandon editing before Photos calls the completion handler, call the [`cancelContentEditingInputRequest(_:)`](/documentation/Photos/PHAsset/cancelContentEditingInputRequest(_:)) method, passing the [`PHContentEditingInputRequestID`](/documentation/Photos/PHContentEditingInputRequestID) you received when requesting an edit.

---

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)