Skip to content

Commit

Permalink
fix(barcode-scanning): readBarcodesFromImage(...) does not resolve …
Browse files Browse the repository at this point in the history
…on iOS
  • Loading branch information
robingenz committed Feb 16, 2024
1 parent 454bad4 commit c297f7e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 5 additions & 0 deletions .changeset/clean-maps-happen.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@capacitor-mlkit/barcode-scanning': patch
---

fix(ios): `readBarcodesFromImage(...)` does not resolve
4 changes: 0 additions & 4 deletions packages/barcode-scanning/ios/Plugin/BarcodeScanner.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}
Expand Down

0 comments on commit c297f7e

Please sign in to comment.