Latest 0.1.1
Homepage https://github.com/AsTao/SimpleQRCodeScanner
License MIT
Platforms ios 9.0
Frameworks UIKit, AVFoundation
Authors

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.

Latest podspec

{
    "name": "SimpleQRCodeScanner",
    "version": "0.1.1",
    "summary": "A short description of SimpleQRCodeScanner.",
    "description": "TODO: Add long description of the pod here.",
    "homepage": "https://github.com/AsTao/SimpleQRCodeScanner",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "tobias": "[email protected]"
    },
    "source": {
        "git": "https://github.com/AsTao/SimpleQRCodeScanner.git",
        "tag": "0.1.1"
    },
    "platforms": {
        "ios": "9.0"
    },
    "source_files": "SimpleQRCodeScanner/Classes/**/*",
    "frameworks": [
        "UIKit",
        "AVFoundation"
    ],
    "swift_version": "4.1",
    "pod_target_xcconfig": {
        "SWIFT_VERSION": "4.1"
    }
}

Pin It on Pinterest

Share This