diff --git a/.changeset/clean-maps-happen.md b/.changeset/clean-maps-happen.md new file mode 100644 index 0000000..9909b05 --- /dev/null +++ b/.changeset/clean-maps-happen.md @@ -0,0 +1,5 @@ +--- +'@capacitor-mlkit/barcode-scanning': patch +--- + +fix(ios): `readBarcodesFromImage(...)` does not resolve diff --git a/packages/barcode-scanning/ios/Plugin/BarcodeScanner.swift b/packages/barcode-scanning/ios/Plugin/BarcodeScanner.swift index a6618d6..052c7a7 100644 --- a/packages/barcode-scanning/ios/Plugin/BarcodeScanner.swift +++ b/packages/barcode-scanning/ios/Plugin/BarcodeScanner.swift @@ -66,10 +66,6 @@ typealias MLKitBarcodeScanner = MLKitBarcodeScanning.BarcodeScanner completion(nil, error.localizedDescription) return } - CAPLog.print("\(features?.count ?? 0)") - guard let features = features, !features.isEmpty else { - return - } completion(features, nil) } }