A block to be called by Photos for processing each frame of the Live Photo’s visual content.
- iOS 10+
- macOS 10.12+
- Mac Catalyst 13.0+
- tvOS 10+
Use this property to define the image processing to be performed on each frame of the Live Photo. Setting this property does not begin processing; instead, after you call one of the methods listed in Processing an Editing Context’s Live Photo, Photos executes your block repeatedly to process each frame of the Live Photo’s video and still photo content.
In your frame processor block, use the
image property of the provided
PHLive object to access the image to be processed, and return a
CIImage object representing the result of your processing. For example, the following code sets up a processor block to apply a simple sepia-tone filter, then calls the
save method to begin processing the Live Photo for output.