Latest 0.2.0
License MIT
Platforms ios 8.0

Customisable QR Code Reader View Controller written in Swift


  • iOS 8.0+


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

pod 'QRCodeController', '~> 0.2'


Create QRCodeController

let qrCodeController = QRCodeController()

Add callback for decoded strings

qrCodeController.callback = { result in

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.


Diego Marcon, [email protected]


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": "",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    "authors": {
        "Diego Marcon": "[email protected]"
    "source": {
        "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