Skip to main content
Language

From Local Path

PhotoEditor SDK supports loading photo files from the local file system such as the documents or a temporary folder, as well as the app bundle.

Retrieve bundle URL#

First we need to retrieve the URL for a file on the local system. In this example, a file within the app bundle.

Initialize the editor#

We then create a Photo from this URL and pass it as photoAsset to the PhotoEditViewController to instantiate the photo editor. Setting the current class as the delegate of the PhotoEditViewController allows us to implement export, cancellation and error handling there.