revertAssetContent(to:)
Reverts the asset’s content to its original, choosing which original resource to use as the unadjusted base for all renders.
Declaration
func revertAssetContent(to choice: PHAsset.OriginalResourceChoice)Parameters
- choice:
The original resource to use as the unadjusted base after reverting.
Discussion
In addition to reverting all adjustments, this selects either the RAW (PHAsset.OriginalResourceChoice.raw) or the compressed (PHAsset.OriginalResourceChoice.compressed) resource as the source for all renders. This applies to RAW+JPEG assets only. Using this with other types of assets is not supported.