Indicates how the layer displays the video content within its bounds.
SDKs
- iOS 4.0+
- macOS 10.7+
- Mac Catalyst 13.0+
Framework
- AVFoundation
Declaration
var videoGravity: AVLayer Video Gravity { get set }
Discussion
Options are resize
, resize
, and resize
. The default is resize
.
This property is animatable.