photoTime

photoTime

photoTime Instance Property of PHLivePhotoEditingContext The offset, in seconds, from the beginning of the Live Photo’s duration to the time corresponding to its still photo.

var photoTime: CMTime { get }

Discussion

To create time-based effects in your frameProcessor block, use this property together with the duration property.