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: 5 days ago
JSON representation
Easily implement barcode/QR scan with few lines. No boilerplate code, no xib, no storboards.
- Host: GitHub
- URL: https://github.com/harshalrj25/barcodeeasyscan
- Owner: harshalrj25
- License: mit
- Created: 2019-02-28T07:10:29.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2025-02-17T05:41:53.000Z (3 months ago)
- Last Synced: 2025-04-30T05:43:24.953Z (5 days ago)
- Topics: barcode, barcode-detection, barcode-reader, barcode-recognizer, barcode-scanner, barcode-scanning, barcodes, ios, ios-swift, qr-codes, qrcode, qrcode-reader, qrcode-scanner, swift
- Language: Swift
- Homepage:
- Size: 49.8 KB
- Stars: 16
- Watchers: 2
- Forks: 3
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# BarcodeEasyScan :loudspeaker:
[](https://travis-ci.org/harshalrj25/BarcodeEasyScan)
[](https://cocoapods.org/pods/BarcodeEasyScan)
[](https://cocoapods.org/pods/BarcodeEasyScan)
[](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"
```
## 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.plistPresent '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: