Apple CoreImage suppports generating a QR image by using CIQRCodeGenerator.
This functionality is missing a "quiet zone" parameter which can help to increase the readable.
MarginQR added this missing parameter for you!
Before using, let's see how MarginQR can help!
The Swift Package Manager is a tool for automating the distribution of Swift code and is integrated into the swift compiler.
Once you have your Swift package set up, adding MarginQR as a dependency is as easy as adding it to the dependencies value of your Package.swift.
dependencies: [
.package(url: "https://github.com/developerntuc/MarginQR", .upToNextMajor(from: "1.0.0"))
]
Carthage is a decentralized dependency manager that builds your dependencies and provides you with binary frameworks. To integrate Alamofire into your Xcode project using Carthage, specify it in your Cartfile
:
github "developerntuc/MarginQR" ~> 1.0
Just instanciate a MarginQR
object
let qr = MarginQR(message: "Hello world!",
correctionLevel: .m,
quietZone: 4,
scale: 5)
// Update to image view
myImageView.image = qr.uiImage
MarginQR is released under the MIT license. See LICENSE for details.