Latest 1.0.0
Homepage https://github.com/tmukammel/BarcodeReader
License MIT
Platforms ios 8.0
Authors

CI Status
Version
License
Platform

Example

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

Screenshots

BarcodeReader

Implementation

Simply create a UIView in interface builder and assign custom class BarcodeReaderView.

BarcodeReader

Then

import UIKit
import BarcodeReader

class ViewController: UIViewController, BarcodeReaderDelegate {

    @IBOutlet weak var barcodeReader: BarcodeReaderView!
    @IBOutlet weak var outputLabel: UILabel!

    override func viewDidLoad() {
        super.viewDidLoad()
        barcodeReader.delegate = self
    }

    override func viewDidAppear(_ animated: Bool) {
        super.viewDidDisappear(animated)
        barcodeReader.startReader()
    }

    // MARK: - BarcodeReaderDelegate
    func barcodeOutput(string: String?) {
        outputLabel.text = string
    }
}

Installation

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

pod "BarcodeReader"

Author

tmukammel, [email protected]

License

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

Latest podspec

{
    "name": "BarcodeReader",
    "version": "1.0.0",
    "summary": "A simple barcode reader UIView subclass.",
    "description": "Simply create a UIView in interface builder and assign custom class BarcodeReaderView. Assign delegate and get output in barcodeOutput(). call startReader() on this view.",
    "homepage": "https://github.com/tmukammel/BarcodeReader",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "tmukammel": "[email protected]"
    },
    "source": {
        "git": "https://github.com/tmukammel/BarcodeReader.git",
        "tag": "1.0.0"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "BarcodeReader/Classes/**/*",
    "pushed_with_swift_version": "3.0"
}

Pin It on Pinterest

Share This