canPerform(_:)
canPerform(_:)
canPerform(_:) Instance Method of PHAsset Returns whether the asset supports the specified editing operation.
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.