isFlashScene
A Boolean value indicating whether the scene currently being previewed by the camera warrants use of the flash.
Declaration
var isFlashScene: Bool { get }Discussion
This property’s value changes depending on the scene currently visible to the camera. For example, you might use this property to highlight the flash control in your app’s camera UI, indicating to the user that the scene is dark enough that enabling the flash might be desirable.
If the photo capture output’s supportedFlashModes value is AVCaptureDevice.FlashMode.off, this property’s value is always false.
This property supports key-value observing.