Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/zyphs21/hsscancode
- Owner: zyphs21
- License: mit
- Created: 2018-02-01T03:04:46.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-04-13T02:03:39.000Z (almost 7 years ago)
- Last Synced: 2025-01-19T23:48:00.410Z (5 days ago)
- Topics: qrcode, qrcode-scanner
- Language: Swift
- Homepage:
- Size: 3.28 MB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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 HSScanCodelet 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.