<!--
{
  "availability" : [
    "iOS: 8.0.0 -",
    "iPadOS: 8.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.15.0 -",
    "tvOS: 10.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "PhotoKit",
  "identifier" : "/documentation/Photos/PHAsset/canPerform(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Photos"
    ],
    "preciseIdentifier" : "c:objc(cs)PHAsset(im)canPerformEditOperation:"
  },
  "title" : "canPerform(_:)"
}
-->

# canPerform(_:)

Returns whether the asset supports the specified editing operation.

```
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`](/documentation/Photos/PHAssetChangeRequest) object inside a [`PHPhotoLibrary`](/documentation/Photos/PHPhotoLibrary) change block to submit a change.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)