Swiftpack.co - developerntuc/MarginQR as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by developerntuc.
developerntuc/MarginQR 1.0.0
Added quiet zone to Apple CoreImage CIQRCodeGenerator
⭐️ 6
🕓 2 years ago
.package(url: "https://github.com/developerntuc/MarginQR.git", from: "1.0.0")

MarginQR

Getting started

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!

Demo

Before using, let's see how MarginQR can help!

Installations

Swift Package Manager

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

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

How to use

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

License

MarginQR is released under the MIT license. See LICENSE for details.

GitHub

link
Stars: 6
Last commit: 2 years ago
Advertisement: IndiePitcher.com - Cold Email Software for Startups

Release Notes

Vanilla
2 years ago

Added quietZone & scale parameters.

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics