Skip to content

Commit

Permalink
Merge pull request #146 from Thornfin/main
Browse files Browse the repository at this point in the history
Update AVCaptureDevice+bestForBuiltInCamera.swift
  • Loading branch information
nathanfallet authored May 31, 2024
2 parents 23e9b6e + 008bc06 commit 34da57f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import AVFoundation
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,
Expand Down

0 comments on commit 34da57f

Please sign in to comment.