PhotoEditor SDK for iOS supports serialization and deserialization, allowing your users to save and revise their work at any time.
For the sake of this example, we create a photo from a URL and present the photo editor in a modal.
Note, that we have to make the current class the delegate of the
PhotoEditViewController in order to handle export and cancellation there.
In order to obtain a
Data object, of all edits that have been applied to the exported photo, simply call
serializedSettings on the
You can optionally convert these settings to a JSON string or JSON dictionary.
For details on the JSON structure you can download our schema.
For further processing you can save the data to the local file system (compare Save Photo to File System) or upload it to a remote server (compare Save Photo To Remote Server) to make the editor state available on other devices as well.
The next section explains how to restore the editor state by deserializing these settings.