Latest 0.2.0
Homepage https://github.com/diegomarcon/QRCodeController
License MIT
Platforms ios 8.0
Authors

Customisable QR Code Reader View Controller written in Swift

Requirements

  • iOS 8.0+

Installation

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

pod 'QRCodeController', '~> 0.2'

Usage

Create QRCodeController

let qrCodeController = QRCodeController()

Add callback for decoded strings

qrCodeController.callback = { result in
    print(result)
}

Present it

presentViewController(qrCodeController, animated: true, completion: nil)

Customisable Properties

  • var borderColor: UIColor: Sets detection border color. Default is UIColor.greenColor()
  • var borderWidth: CGFloat: Sets detection border width. Default is 2
  • var vibrate: Bool: Vibrate on code detection. Default is true
  • var closeAfterCapture: Bool: Close controller after first capture. Default is true
  • var suppotedMetadataObjectTypes: [String]: Supported metadata object types. Default is [AVMetadataObjectTypeQRCode]. More AVMetadataObjectType's can be found on AVMetadataObject reference.

Author

Diego Marcon, [email protected]

License

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

Latest podspec

{
    "name": "QRCodeController",
    "version": "0.2.0",
    "summary": "Simple QRCode Reader view controller written in Swift.",
    "description": "Simple QR Code Reader view controller written in Swift.",
    "homepage": "https://github.com/diegomarcon/QRCodeController",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Diego Marcon": "[email protected]"
    },
    "source": {
        "git": "https://github.com/diegomarcon/QRCodeController.git",
        "tag": "0.2.0"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "QRCodeController/Classes/**/*",
    "pushed_with_swift_version": "3.0"
}

Pin It on Pinterest

Share This