-
-
Notifications
You must be signed in to change notification settings - Fork 315
Open
Description
Getting error: .badOutput
when picking a barcode from photos gallery. If I normally try to scan the same barcode, it works.
The operation couldn’t be completed. (CodeScanner.ScanError error 2.)
CodeScannerView(
codeTypes: [.upce, .ean8, .ean13, .code128, .code93, .code39],
scanMode: .oncePerCode,
shouldVibrateOnSuccess: false,
isGalleryPresented: $showGallery,
videoCaptureDevice: .systemPreferredCamera
) { response in
switch response {
case .success(let success):
barcode = success.string
image = success.image
case .failure(let failure):
print("+++ \(failure)")
break
}
}
Note: I tried to take a picture in many different angles.
Metadata
Metadata
Assignees
Labels
No labels