![]() ![]() Press Finish to import the finished package into your project.For the version rules, leave “Up to Next Major” selected, which means you’ll get any bug fixes and additional features but not any breaking changes.Go to File > Swift Packages > Add Package Dependency.Here, though, we’re just going to add it to Xcode by following these steps: My package is called CodeScanner, and its available on GitHub under the MIT license at – you’re welcome to inspect and/or edit the source code if you want. This doesn’t integrate into SwiftUI terribly smoothly, so to skip over a whole lot of pain I’ve package up a QR code reader into a Swift package that we can add and use directly inside Xcode. Scanning a QR code – or indeed any kind of visible code such as barcodes – can be done by Apple’s AVFoundation library. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |