canPerform(_:)
Returns whether the asset supports the specified editing operation.
Declaration
func canPerform(_ editOperation: PHAssetEditOperation) -> BoolParameters
- editOperation:
The operation to be tested.
Return Value
true if the asset supports the specified editing operation; otherwise, false.
Discussion
If an asset supports editing, you can create a PHAssetChangeRequest object inside a PHPhotoLibrary change block to submit a change.
See Also
Editing an Asset
Editing Asset ContentPHContentEditingInputPHContentEditingOutputPHAdjustmentDataPHContentEditingInputRequestOptionsPHLivePhotoEditingContextPHLivePhotoFramePHAssetEditOperationrequestContentEditingInput(with:completionHandler:)cancelContentEditingInputRequest(_:)PHContentEditingInputRequestIDEditing Request Info Keys