Contents

videoGravity

A value that indicates how the layer displays 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