Latest 1.0.0
Homepage https://github.com/Meniny/QuickResponseCode
License MIT
Platforms ios 8.0, tvos 9.0
Frameworks Foundation, UIKit
Authors

QuickResponseCode

VersionAuthorBuild PassingSwift
PlatformsMIT
CocoapodsCarthageSPM

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 8 with Swift 3

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)
}

Latest podspec

{
    "name": "QuickResponseCode",
    "version": "1.0.0",
    "summary": "A tiny tiny Quick Response Code (QRCode) for iOS.",
    "homepage": "https://github.com/Meniny/QuickResponseCode",
    "license": "MIT",
    "authors": {
        "Elias Abel": "[email protected]"
    },
    "source": {
        "git": "https://github.com/Meniny/QuickResponseCode.git",
        "tag": "1.0.0"
    },
    "platforms": {
        "ios": "8.0",
        "tvos": "9.0"
    },
    "source_files": "QuickResponseCode/*.*",
    "module_name": "QuickResponseCode",
    "public_header_files": "QuickResponseCode/*.h",
    "frameworks": [
        "Foundation",
        "UIKit"
    ],
    "pushed_with_swift_version": "3.0"
}

Pin It on Pinterest

Share This