---
title: "canPerform(_:)"
framework: photos
role: symbol
role_heading: Instance Method
path: "photos/phasset/canperform(_:)"
---

# canPerform(_:)

Returns whether the asset supports the specified editing operation.

## Declaration

```swift
func canPerform(_ editOperation: PHAssetEditOperation) -> Bool
```

## Parameters

- `editOperation`: The operation to be tested.

## Return Value

Return Value true if the asset supports the specified editing operation; otherwise, false.

## Discussion

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 Content](photokit/editing-asset-content.md)
- [PHContentEditingInput](photos/phcontenteditinginput.md)
- [PHContentEditingOutput](photos/phcontenteditingoutput.md)
- [PHAdjustmentData](photos/phadjustmentdata.md)
- [PHContentEditingInputRequestOptions](photos/phcontenteditinginputrequestoptions.md)
- [PHLivePhotoEditingContext](photos/phlivephotoeditingcontext.md)
- [PHLivePhotoFrame](photos/phlivephotoframe.md)
- [PHAssetEditOperation](photos/phasseteditoperation.md)
- [requestContentEditingInput(with:completionHandler:)](photos/phasset/requestcontenteditinginput(with:completionhandler:).md)
- [cancelContentEditingInputRequest(_:)](photos/phasset/cancelcontenteditinginputrequest(_:).md)
- [PHContentEditingInputRequestID](photos/phcontenteditinginputrequestid.md)
- [Editing Request Info Keys](photokit/editing-request-info-keys.md)
