PHLivePhotoFrame

PHLivePhotoFrame

PHLivePhotoFrame Protocol of Photos A container that provides image content for a single frame of a Live Photo in an editing context.

protocol PHLivePhotoFrame

Overview

You don’t create classes that implement this protocol. Instead, you provide a frameProcessor block when editing a Live Photo with the PHLivePhotoEditingContext class. When you process your edits for output or display, Photos calls your block repeatedly to process each frame of the Live Photo’s video and still photo content. On each call, Photos provides the frame’s image content and associated information in an object that adopts this protocol. In that block, you use that object’s image property to access the image to be edited, then perform your edits and return another //com.apple.documentation/documentation/CoreImage/CIImage object representing the result of processing the input image.