QRCodeReader.swift icon indicating copy to clipboard operation
QRCodeReader.swift copied to clipboard

Allow raw QRCode bytes

Open LeoSchleicher opened this issue 6 years ago • 0 comments

Hello, thank you very much for the cool project!

It could be so good as QRcodeReader will be able to read raw QRcode bytes. In my current project I pack raw bytes into QR code, but default apple implementation prefers string results by reading from QR code. But raw results are also available via KVP. I've made quick-and-dirty solution here https://github.com/LeoSchleicher/QRCodeReader.swift/commit/cb191209d4b5a20ca501d49a9a76e6733c8e6958 - I just pack raw data against string (if the string is available), and I've inserted a global property to allow to finish scanning if raw result is sufficient. I can create a merge request, but my solution is not so elegant. If you give me tips to improve, I'll made this and prepare a better solution

LeoSchleicher avatar Sep 06 '19 09:09 LeoSchleicher