CocoaPods trunk is moving to be read-only. Read more on the blog, there are 18 months to go.

QRSwift 0.4.1

QRSwift 0.4.1

TestsTested
LangLanguage SwiftSwift
License MIT
ReleasedLast Release Sep 2017
SwiftSwift Version 4.0
SPMSupports SPM

Maintained by Chris Amanse, Chris Amanse.



QRSwift 0.4.1

QRSwift

QRSwift is a Swift framework for generating QR codes.

Installation

Swift Package Manager

Add .Package(url: "https://github.com/chrisamanse/QRSwift.git", majorVersion: 0) in the dependencies of your Package or Target, then run swift package update.

Usage

var message = "Hello, World!"

// Encode message as Data
let data = message.data(using: .utf8)!

// Create a QR code generator instance
let generator = QRCodeGenerator()

// QR Code CIImage with default correction level and size
let image = try? generator.outputImage(message: data)

// Configured correction level and output image size
let configuredImage = try? generator.outputImage(message: data, correctionLevel: .M, size: CGSize(width: 512, height: 512))

License

Copyright © 2016 Joe Christopher Paul Amanse

This software is distributed under the MIT License.