MGPBarcodeScanner 0.1.0

MGPBarcodeScanner 0.1.0

Maintained by MahendraGP.




  • By
  • MahendraGP

MGPBarcodeScanner

CI Status Version License Platform

Example

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

Requirements

  • Min. iOS 10.0 or later
  • Swift 4.0 or later

Usage

    let vc = MGPScannerViewController.viewControllerFrom(storyboard: "Main", withIdentifier: "MGPScannerViewController")!
    vc.delegate = self 
    vc.closeBarButtonDirection = .right // to dismiss/pop view controller
    vc.overlayColor = UIColor.yellow // color if lines over camera

    vc.closeBarButton = UIBarButtonItem(title: "Close", style: .done, target: self, action: #selector(close)) // cutomise bar button item

    let nav = UINavigationController(rootViewController: vc)
    nav.navigationBar.tintColor = UIColor.whit
    nav.navigationBar.barTintColor = UIColor.brown
    present(nav, animated: true, completion: nil)

Installation

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

pod 'MGPBarcodeScanner'

Author

MahendraGP

License

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