Instance Property

videoGravity

Indicates how the layer displays the video content within its bounds.

Declaration

var videoGravity: AVLayerVideoGravity { get set }

Discussion

Options are resizeAspect, resizeAspectFill, and resize. The default is resizeAspect.

This property is animatable.

See Also

Layer Configuration

var isPreviewing: Bool

A Boolean value that indicates whether the layer is rendering video frames from its source.