Contents

chrisamanse/QRSwift

A Swift framework for generating QR codes

[Swift Package Manager](https://github.com/apple/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.

[CocoaPods](https://github.com/CocoaPods/CocoaPods)

Add pod 'QRSwift' to your target in your Podfile, then run pod install.

[Carthage](https://github.com/Carthage/Carthage)

Add this to your Cartfile:

github "chrisamanse/QRSwift"

Then run:

$ carthage update

Usage


let message = "Hello, World!"

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

// Create a QR code generator instance
var generator = QRCodeGenerator()
generator.correctionLevel = .M

// Generate image
let image = generator.image(with: data, outputImageSize: CGSize(width: 128, height: 128))

License

Copyright (c) 2017 Joe Christopher Paul Amanse

This software is distributed under the MIT License.

Package Metadata

Repository: chrisamanse/QRSwift

Stars: 4

Forks: 0

Open issues: 0

Default branch: master

Primary language: swift

License: MIT

Topics: carthage, cifilter, cocoapods, coreimage, qrcode, swift

README: README.md