From 1e821599deca35e528b42b5114d3117c467b6e20 Mon Sep 17 00:00:00 2001 From: Thorfin <143378982+Thornfin@users.noreply.github.com> Date: Fri, 31 May 2024 09:44:14 -0400 Subject: [PATCH 1/2] Update AVCaptureDevice+bestForBuiltInCamera.swift Made them public --- .../CodeScanner/AVCaptureDevice+bestForBuiltInCamera.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Sources/CodeScanner/AVCaptureDevice+bestForBuiltInCamera.swift b/Sources/CodeScanner/AVCaptureDevice+bestForBuiltInCamera.swift index 2c1b8f7..5aad5aa 100644 --- a/Sources/CodeScanner/AVCaptureDevice+bestForBuiltInCamera.swift +++ b/Sources/CodeScanner/AVCaptureDevice+bestForBuiltInCamera.swift @@ -9,10 +9,10 @@ import AVFoundation @available(macCatalyst 14.0, *) -extension AVCaptureDevice { +public extension AVCaptureDevice { /// Returns best built in back camera for scanning QR codes zoomed for a given minimum code size. - static func zoomedCameraForQRCode(withMinimumCodeSize minimumCodeSize: Float = 20) -> AVCaptureDevice? { + public static func zoomedCameraForQRCode(withMinimumCodeSize minimumCodeSize: Float = 20) -> AVCaptureDevice? { let captureDevice = AVCaptureDevice.DiscoverySession( deviceTypes: [.builtInWideAngleCamera], mediaType: .video, From 008bc0680afa5e1535f22857f12fe1f3aed84116 Mon Sep 17 00:00:00 2001 From: Nathan Fallet Date: Fri, 31 May 2024 20:43:12 +0200 Subject: [PATCH 2/2] fix: both cannot be public --- Sources/CodeScanner/AVCaptureDevice+bestForBuiltInCamera.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/CodeScanner/AVCaptureDevice+bestForBuiltInCamera.swift b/Sources/CodeScanner/AVCaptureDevice+bestForBuiltInCamera.swift index 5aad5aa..f6371a7 100644 --- a/Sources/CodeScanner/AVCaptureDevice+bestForBuiltInCamera.swift +++ b/Sources/CodeScanner/AVCaptureDevice+bestForBuiltInCamera.swift @@ -9,7 +9,7 @@ import AVFoundation @available(macCatalyst 14.0, *) -public extension AVCaptureDevice { +extension AVCaptureDevice { /// Returns best built in back camera for scanning QR codes zoomed for a given minimum code size. public static func zoomedCameraForQRCode(withMinimumCodeSize minimumCodeSize: Float = 20) -> AVCaptureDevice? {