---
title: revertAssetContentToOriginal()
framework: photos
role: symbol
role_heading: Instance Method
path: photos/phassetchangerequest/revertassetcontenttooriginal()
---

# revertAssetContentToOriginal()

Request to revert any edits made to the asset’s content.

## Declaration

```swift
func revertAssetContentToOriginal()
```

## Discussion

Discussion When an asset has been edited, Photos stores multiple versions of the asset: the original version of the asset as it was first captured or imported, and the input and output of the most recent edit. (You work with asset versions when requesting to edit an asset’s content—see PHContentEditingInputRequestOptions.) Call this method to revert to the original version of the asset, discarding all edits. important: This request fails if original content for the asset is not available on the current device (for example, if iCloud Photo Library is enabled and the user has edited the asset on a different device). Use PHAssetResourceManager to ensure that original asset content is downloaded to the current device before making this request.

## See Also

### Editing Asset Content

- [contentEditingOutput](photos/phassetchangerequest/contenteditingoutput.md)
