Asks your extension for edited asset data to finish the editing session.
- iOS 8+
- macOS 10.11+
A block for your extension to call when you have finished editing.
The block takes the following parameter:
PHContentobject you created and populated before calling the completion handler.
Photos calls this method when the user chooses to end the editing session. Your extension view controller should:
Disable UI elements to prevent the user from editing further while you complete the remaining steps on a background queue.
Use the content editing output to store the rendered photo or video data from the user’s edits and a
PHAdjustmentobject describing the edits.
completionblock with your content editing output, to notify Photos that the edit is complete.
completionblock finishes executing, you may safely clean up any data or files related to your edit.