focusMode
The capture device’s focus mode.
Declaration
var focusMode: AVCaptureDevice.FocusMode { get set }Discussion
Before changing the value of this property, you must call lockForConfiguration() to acquire exclusive access to the device’s configuration properties. Otherwise, setting the value of this property raises an exception. When you finish configuring the device, call unlockForConfiguration() to release the lock and allow other devices to configure the settings.
This property is key-value observable.