Skip to content
📲 A tiny Quick Response Code (QRCode) library for iOS written in Swift
Swift Ruby Objective-C
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Assets
QuickResponseCode 1.0.0 Aug 2, 2017
Sample 1.1.0 swift4 Jan 12, 2018
.gitignore
.swift-version
LICENSE 1.0.0 Aug 2, 2017
QuickResponseCode.podspec 1.1.0 swift4 Jan 12, 2018
README.md 1.1.0 swift4 Jan 12, 2018

README.md

QuickResponseCode
Version Author Build Passing Swift
Platforms MIT
Cocoapods Carthage SPM

What's this?

QuickResponseCode is a tiny Quick Response Code (QRCode) library for iOS written in Swift.

Requirements

  • iOS 8.0+
  • tvOS 9.0+
  • Xcode 9 with Swift 4

Installation

CocoaPods

use_frameworks!
pod 'QuickResponseCode'

Contribution

You are welcome to fork and submit pull requests.

License

QuickResponseCode is open-sourced software, licensed under the MIT license.

Usage

import QuickResponseCode

func generate() {
  let qr = QRCode(string: textView.text,
                        size: imageView.bounds.size,
                        foreground: UIColor.random,
                        background: UIColor.random,
                        correction: .low)
  let iconedimage = qr.iconedImage(#imageLiteral(resourceName: "icon"))
  let image = qr.image
}

func generate2() {
  let image = UIImage.QRCodeImage(from: textView.text,
                        size: imageView.bounds.size,
                        foreground: UIColor.random,
                        background: UIColor.random,
                        correction: .low)
}

func generate3() {
  let image = "SourceString".QRCodeImage(size: imageView.bounds.size,
                        foreground: UIColor.random,
                        background: UIColor.random,
                        correction: .low)
}
You can’t perform that action at this time.