From 80d6837b57617f47a5616209f4e01ea9c1277b2a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hakan=20Demiro=CC=88z?= Date: Mon, 20 Feb 2017 17:52:18 +0300 Subject: [PATCH] Fixed issue where flash mode was not being passed into capture settings when capturing photos --- Source/PBJVision.m | 1 + 1 file changed, 1 insertion(+) diff --git a/Source/PBJVision.m b/Source/PBJVision.m index 6d93cab..aa3e4e3 100644 --- a/Source/PBJVision.m +++ b/Source/PBJVision.m @@ -1732,6 +1732,7 @@ - (void)capturePhoto if ([AVCapturePhotoOutput class]) { AVCapturePhotoSettings *settings = [AVCapturePhotoSettings photoSettingsWithFormat:@{AVVideoCodecKey : AVVideoCodecJPEG}]; settings.highResolutionPhotoEnabled = YES; + settings.flashMode = _currentDevice.flashMode; [_captureOutputPhoto capturePhotoWithSettings:settings delegate:self]; }