Creates a Live Photo editing context for the specified editing input.
- iOS 10+
- macOS 10.12+
- Mac Catalyst 13.0+
- tvOS 10+
A content editing input object representing the Live Photo for which to perform editing.
A new Live Photo editing context, or
nil if the provided content editing input does not represent a Live Photo.
In an app using the Photos framework, you obtain a
PHContent object by calling
request method of a
PHAsset object that you’ve previously fetched.
In a photo editing extension that runs within the Photos app, your extension’s main view controller (which adopts the
PHContent protocol) receives a
PHContent object when the user chooses to edit a Live Photo with your extension.
You can create a Live Photo editing context only from
PHContent object that represents a Live Photo. Use the
live property of the editing input to verify that it has live Photo content.