Contents

videoGravity

A value that indicates how the layer displays video within its bounds.

Declaration

var videoGravity: AVLayerVideoGravity { get set }

Discussion

AVLayerVideoGravity defines the supported video gravities. The default value is resizeAspect.

See Also

Configuring the layer