activeInputSource
The currently active input source of the device.
Declaration
var activeInputSource: AVCaptureDevice.InputSource? { get set }Discussion
You must call lockForConfiguration() before attempting to set a format. Setting a format that isn’t present in the inputSources array results in an exception.
This property is key-value observable.