SimpleQRCodeScanner 0.1.2

SimpleQRCodeScanner 0.1.2

Maintained by tobias.



  • By
  • tobias

SimpleQRCodeScanner

Usage

override func viewDidLoad() {
    super.viewDidLoad()
        self.scanner.resultBlock = { [weak self] code in
        print(code)
        self?.navigationController?.popViewController(animated: true)
    }
}

@IBOutlet weak var scanner: QRCodeScannerView!

override func viewWillAppear(_ animated: Bool) {
    super.viewWillAppear(animated)
    self.scanner.start()
}

override func viewWillDisappear(_ animated: Bool) {
    super.viewWillDisappear(animated)
    self.scanner.stop()
}

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

Installation

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

pod 'SimpleQRCodeScanner'

Author

tobias, [email protected]

License

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