Instance Property


The capture formats supported by the device.


var formats: [AVCaptureDevice.Format] { get }


An AVCaptureDevice.Format object describes in detail the video, image, or audio parameters of a specific mode of capture. If you need access to capture settings not covered by an AVCaptureSession preset, you can set the activeFormat property to any of the formats in this array.

You can observe changes to the value of this property using Key-value observing.

See Also

Managing Formats

var activeFormat: AVCaptureDevice.Format

The currently active media data format of the capture device.

class AVCaptureDevice.Format

A set of media format and capture settings (such as video resolution and frame rate) that you use to configure a capture device.