Contents

dynamicAspectRatio

A key-value observable property indicating the current aspect ratio for a device.

Declaration

var dynamicAspectRatio: AVCaptureDevice.AspectRatio? { get }

Discussion

This property is initialized to the first AVCaptureDevice.AspectRatio listed in the device’s activeFormat’s supportedDynamicAspectRatios property. If the activeFormat’s supportedDynamicAspectRatios is an empty array, this property returns nil.

See Also

Configuring dynamic aspect ratio