---
title: "showEditor(for:)"
framework: photosui
role: symbol
role_heading: Instance Method
path: "photosui/phprojectextensioncontext/showeditor(for:)"
---

# showEditor(for:)

Invokes the built-in photo editor for the given asset.

## Declaration

```swift
func showEditor(for asset: PHAsset)
```

## Parameters

- `asset`: The asset to edit.

## Discussion

Discussion To be notified when assets are edited, the extension should observe library changes by implementing the PHPhotoLibraryChangeObserver protocol.

## See Also

### Updating Assets

- [updatedProjectInfo(from:completion:)](photosui/phprojectextensioncontext/updatedprojectinfo(from:completion:).md)
