Skip to content

Commit 8588bf6

Browse files
author
Ricardo Torrão
committed
Merge branch 'ShoheiSugawa-bugfix/flash_mode_on_front_camera'
2 parents b8bb2ee + 074d622 commit 8588bf6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/CameraManager.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1817,7 +1817,7 @@ public class CameraManager: NSObject, AVCaptureFileOutputRecordingDelegate, UIGe
18171817
defer { captureSession?.commitConfiguration() }
18181818
for captureDevice in AVCaptureDevice.videoDevices {
18191819
guard let avFlashMode = AVCaptureDevice.FlashMode(rawValue: flashMode.rawValue) else { continue }
1820-
if captureDevice.isFlashModeSupported(avFlashMode) && cameraDevice == .back {
1820+
if captureDevice.isFlashModeSupported(avFlashMode) {
18211821
do {
18221822
try captureDevice.lockForConfiguration()
18231823
} catch {

0 commit comments

Comments
 (0)