Contents

time

The time offset, in seconds, of this frame relative to the start of the Live Photo.

Declaration

var time: CMTime { get }

Discussion

You can use this value to vary your image processing over time, creating animated effects. For example, the following code sets up an animated filter that fades from sepia tone to original to sepia tone again over the duration of the Live Photo:

See Also

Getting Information About the Frame