Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/zyphs21/hsscancode

Scan QRCode using Swift
https://github.com/zyphs21/hsscancode

qrcode qrcode-scanner

Last synced: 5 days ago
JSON representation

Scan QRCode using Swift

Awesome Lists containing this project

README

        

# HSScanCode

## Example

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

![](https://raw.githubusercontent.com/zyphs21/HSScanCode/master/demo.gif)

## Requirements

- Swift 4
- iOS 8 +

## Installation

HSScanCode is available through [CocoaPods](http://cocoapods.org). To install
it, simply add the following line to your Podfile:

```ruby
pod 'HSScanCode'
```

## Usage

```Swift
import HSScanCode

let vc = HSScanViewController()
vc.delegate = self
self.navigationController?.pushViewController(vc, animated: true)

// get scan result from HSScanViewControllerDelegate
extension ViewController: HSScanViewControllerDelegate {
func scanFinished(scanResult: ScanResult, error: String?) {
print(scanResult.scanResultString ?? "")
}
}
```

## Author

zyphs21, [email protected]

[my blog: myhanson.com](www.myhanson.com)

## License

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