Latest 0.4.1
License MIT
Platforms ios 9.0, osx 10.11, tvos 10, requires ARC

Build Status
Swift Version
spm compatible
Carthage compatible
CocoaPods compatible

QRSwift is a Swift framework for generating QR codes.


Swift Package Manager

Add .Package(url: "", majorVersion: 0) in the dependencies of your Package or Target, then run swift package update.


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


Add this to your Cartfile:

github "chrisamanse/QRSwift"

Then run:

$ carthage update


let message = "Hello, World!"

// Encode message as Data
let data = .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))


Copyright (c) 2017 Joe Christopher Paul Amanse

This software is distributed under the MIT License.

Latest podspec

    "name": "QRSwift",
    "version": "0.4.1",
    "summary": "Swift framework for generating QR codes",
    "description": "QRSwift is a Swift framework for generating QR codes.",
    "homepage": "",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    "authors": "Chris Amanse",
    "social_media_url": "",
    "platforms": {
        "ios": "9.0",
        "osx": "10.11",
        "tvos": "10"
    "source": {
        "git": "",
        "tag": "0.4.1"
    "source_files": [
    "requires_arc": true,
    "pod_target_xcconfig": {
        "SWIFT_VERSION": "4.0"
    "pushed_with_swift_version": "4.0"

Pin It on Pinterest

Share This