Contents

renderScale

The scale factor of the frame image relative to the Live Photo’s photo content.

Declaration

var renderScale: CGFloat { get }

Discussion

Photos calls your frameProcessor block repeatedly, both to process each frame of the Live Photo’s video content and to process the Live Photo’s still photo content. Video frames can be a different size than still photo content—use this value to scale any of your image processing parameters that depend on the image’s size.

For example, the following code uses this property to ensure that the radius of a blur filter is consistent across all frames of a Live Photo:

See Also

Getting Information About the Frame