Contents

canPerform(_:)

Returns whether the asset supports the specified editing operation.

Declaration

func canPerform(_ editOperation: PHAssetEditOperation) -> Bool

Parameters

  • 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