Contents

shouldRenderAtPlaybackTime

Specifies whether processing should occur during or before playback.

Declaration

static let shouldRenderAtPlaybackTime: PHLivePhotoEditingOption

Discussion

The value for this key is an NSNumber object with a Boolean value. With the default value of false, Photos always renders your edits immediately when you call the init(livePhotoEditingInput:) method, calling your frameProcessor block for each frame in the Live Photo’s video and still photo content.

When you specify a value of true, Photos can defer rendering until playback time, calling your frameProcessor block only for photo and video frames that need to be displayed. However, in this case Photos may still choose to pre-render your edits if needed.

This option does not apply when rendering for output with the saveLivePhoto(to:options:completionHandler:) method.