Instance Property


A constant value indicating the quality level or bit rate of the output.


var sessionPreset: AVCaptureSession.Preset { get set }


You use this property to customize the quality level or bit rate of the output. For possible values of sessionPreset, see AVCaptureSession.Preset. The default value is high.

You can set this value while the session is running.

You can only set a preset if canSetSessionPreset(_:) returns true f or that preset.

See Also

Managing Session Presets

struct AVCaptureSession.Preset

Constants to define capture setting presets using the sessionPreset property.

func canSetSessionPreset(AVCaptureSession.Preset) -> Bool

Returns a Boolean value that indicates whether the session can use the given preset.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software