Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/harshalrj25/barcodeeasyscan

Easily implement barcode/QR scan with few lines. No boilerplate code, no xib, no storboards.
https://github.com/harshalrj25/barcodeeasyscan

barcode barcode-detection barcode-reader barcode-recognizer barcode-scanner barcode-scanning barcodes ios ios-swift qr-codes qrcode qrcode-reader qrcode-scanner swift

Last synced: 4 days ago
JSON representation

Easily implement barcode/QR scan with few lines. No boilerplate code, no xib, no storboards.

Awesome Lists containing this project

README

        

# BarcodeEasyScan :loudspeaker:

[![CI Status](https://img.shields.io/travis/harshalrj25/BarcodeEasyScan.svg?style=flat)](https://travis-ci.org/harshalrj25/BarcodeEasyScan)
[![Version](https://img.shields.io/cocoapods/v/BarcodeEasyScan.svg?style=flat)](https://cocoapods.org/pods/BarcodeEasyScan)
[![License](https://img.shields.io/cocoapods/l/BarcodeEasyScan.svg?style=flat)](https://cocoapods.org/pods/BarcodeEasyScan)
[![Platform](https://img.shields.io/cocoapods/p/BarcodeEasyScan.svg?style=flat)](https://cocoapods.org/pods/BarcodeEasyScan)

Easily implement barcode scan with few lines. No boilerplate code, no xib, no storboards.

## Example :books:

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

## Installation :hourglass_flowing_sand:

BarcodeEasyScan is available through [CocoaPods](https://cocoapods.org) and [Carthage](https://github.com/Carthage/Carthage):

To Install for `CocoaPods`

```ruby
pod 'BarcodeEasyScan'
```
Or Install for `Carthage`

```ruby
github "harshalrj25/BarcodeEasyScan" "master"
```
![alt text](https://github.com/harshalrj25/MasterAssetsRepo/blob/master/barcode.gif "Barcode")

## Usage :bulb:

Import the pod inside your viewcontroller class.
```
import BarcodeEasyScan
```
You need to add the ``` "Privacy - Camera usage description" ``` key to your app’s Info.plist

Present 'BarcodeScannerViewController' and assign its delegate to self.
```
// Call this controller to open barcode screen
let barcodeViewController = BarcodeScannerViewController()
barcodeViewController.delegate = self
self.present(barcodeViewController, animated: true, completion: {
})
```
Use the 'ScanBarcodeDelegate' to implement userDidScanWith(barcode: String) method.
```
func userDidScanWith(barcode: String) {
// This method results the scanned barcode string
}
```

## Author :innocent:

My email id, [email protected]

Harshal Jadhav





## License

It's all your's :gift: