Latest1.2
Homepagehttps://github.com/ricardopereira/QRCodeReader
LicenseMIT
Platformsios 8.0, requires ARC
FrameworksUIKit, AVFoundation
Authors

A simple QRCode reader for Swift (based on CDZQRScanningViewController)

Version

Usage

let reader = QRCodeReaderViewController()

reader.resultCallback = {
    println($1)
    $0.dismissViewControllerAnimated(true, completion: nil)
}

reader.cancelCallback = {
    $0.dismissViewControllerAnimated(true, completion: nil)
}

presentViewController(reader, animated: true, completion: nil)
More
  • Autofocus
  • Cancel the operation by swiping the view down
  • Turn on the flashlight 🔆 with force touch on the view

Requirements

  • iOS 8.0+
  • Xcode 6.3 (Swift 1.2)

Installation

QRCodeReader is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod "QRCodeReader"

You will also need to make sure you’re opting into using frameworks:

use_frameworks!

Then run pod install with CocoaPods 0.36 or newer.

Author

Ricardo Pereira, @ricardopereiraw

License

QRCodeReader is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "QRCodeReader",
    "version": "1.2",
    "summary": "A simple QRCode reader for Swift.",
    "homepage": "https://github.com/ricardopereira/QRCodeReader",
    "license": "MIT",
    "authors": {
        "Ricardo Pereira": "[email protected]"
    },
    "source": {
        "git": "https://github.com/ricardopereira/QRCodeReader.git",
        "tag": "1.2"
    },
    "social_media_url": "https://twitter.com/ricardopereiraw",
    "platforms": {
        "ios": "8.0"
    },
    "requires_arc": true,
    "source_files": "*.{h,swift}",
    "frameworks": [
        "UIKit",
        "AVFoundation"
    ]
}

Pin It on Pinterest

Share This