mobile_scanner
mobile_scanner copied to clipboard
fix: Switch to iOS 13, use Tasks to handle threads and add error handling
Continuation of #726
Any updates on this PR ? @juliansteenbakker
Since this PR needs a minimum of iOS 13, i am working on a implementation that also enabled iOS 12 to work. @yeras-is
I have got this working right now, however, im not yet convinced if this is an improvement over the existing features. I'm not quite familiar with swift async programming and completion, so i can't really point out the advantage over each other. @navaronbracke do you have any idea's about if this change is really an improvement, or will just clutter the existing codebase more?
I'm not that familiar with Tasks in Swift, but a quick search yields the following comment as a good summary:
https://developer.apple.com/forums/thread/712303?answerId=724093022#724093022
Since we are only using the task for the start()
method, it's up to you to decide if we want it or not.
I'm fine with either option.