From b0ccf4c1fb1a0eb373dc275e14fb68a427981886 Mon Sep 17 00:00:00 2001 From: developerius Date: Thu, 30 Apr 2026 10:24:37 +0500 Subject: [PATCH] fix: enable high resolution capture for iOS 15 and earlier --- .../ios/Hybrid Objects/Outputs/HybridCameraPhotoOutput.swift | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/react-native-vision-camera/ios/Hybrid Objects/Outputs/HybridCameraPhotoOutput.swift b/packages/react-native-vision-camera/ios/Hybrid Objects/Outputs/HybridCameraPhotoOutput.swift index 9912804a8e..45e5bb7deb 100644 --- a/packages/react-native-vision-camera/ios/Hybrid Objects/Outputs/HybridCameraPhotoOutput.swift +++ b/packages/react-native-vision-camera/ios/Hybrid Objects/Outputs/HybridCameraPhotoOutput.swift @@ -83,6 +83,9 @@ class HybridCameraPhotoOutput: HybridCameraPhotoOutputSpec, NativeCameraOutput { try? prepareDefaultPhotoSettings() } } + } else { + // For iOS 15 and earlier, enabling AVCapturePhotoSettings.isHighResolutionPhotoEnabled requires setting isHighResolutionCaptureEnabled = true on the AVCapturePhotoOutput instance. + output.isHighResolutionCaptureEnabled = true } }