CodeScanner icon indicating copy to clipboard operation
CodeScanner copied to clipboard

oncePerCode doesn't seem to stop camera from "capturing photos"

Open theedov opened this issue 8 months ago • 0 comments

The camera keeps capturing photos(the camera sound keeps re-triggering). When I change to just .once, camera sound doesn't re-trigger.

Version: 2.5.2 iPhone 16 Pro, iOS 18.3.1

        CodeScannerView(
            codeTypes: [.upce, .ean8, .ean13, .code128, .code93, .code39],
            scanMode: .oncePerCode,
            shouldVibrateOnSuccess: false
        ) { response in
            switch response {
            case .success(let success):
                barcode = success.string
                image = success.image
            case .failure(let failure):
                break
            }
        }

theedov avatar Feb 16 '25 04:02 theedov