Hi there, I'm developing app with the KMP and I wa...
# multiplatform
j
Hi there, I'm developing app with the KMP and I want to add OR code and Barcode scanner into the app for android, iOS and desktop. What should I need to use that can be easy to and give native performance?
j
following is nice option https://github.com/ismai117/KScan/
👍 1
j
Any other suggestions?
d
Android have Google ML Kit, in that there is a QR scanner, You can easily integrate in Compose. It supports mostly all kind of QR codes and Barcodes
j
Okay, But what I we are going to add Desktop and iOS?
d
Probably,
j
Google ML Kit will work with those platform?
k
with ML KIT, it does not support arm64 architecture, so no simulator for it
you can also do it urself, embedding swiftui in compose for ios, done it recently with Vision framework and works pretty nicely
d
Exactly
Not works for desktop. But can use for android and iOS app.
j
that library uses MLKit on Android and AVFoundation on iOS
k
☝️
j
Okay, So I can use the ML KIT for android and for iOS I can use vision framework right? Great @krzysztof I will try that also.
@John O'Reilly I already it and test it. Thanks Man.
d
ML kit has iOS, with swift support also
j
@John O'Reilly I think there is one limitation I can't change the UI. 😄
d
AVFoundation
framework for iOS
j
Right @Dipesh Korat. John give libs that also do it as he said for android it's use ML KIT and for iOS use
AVFoundation
Thank You guys. 🙂
d
Ohh Sorry, there it is already.
i
@Jaydip Umaretiya Hey, the UI is now optional! You can use the raw scanner directly. I’m also planning to add a new feature soon that’ll let you build a custom UI using controllers
🙌 1
k
Coolio, if you need some help, give me a shout @Ismail
👍 1
🙏 1
j
@Ismail Awesome