Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ricardopereira/qrcodereader
A simple QRCode reader
https://github.com/ricardopereira/qrcodereader
qr-code qrcode qrcode-reader qrcode-scanner
Last synced: 3 days ago
JSON representation
A simple QRCode reader
- Host: GitHub
- URL: https://github.com/ricardopereira/qrcodereader
- Owner: ricardopereira
- License: mit
- Created: 2015-05-29T11:09:34.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-06-17T09:12:27.000Z (over 9 years ago)
- Last Synced: 2024-09-16T09:46:09.370Z (4 months ago)
- Topics: qr-code, qrcode, qrcode-reader, qrcode-scanner
- Language: Swift
- Size: 170 KB
- Stars: 6
- Watchers: 1
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# QRCodeReader
A simple QRCode reader for Swift (based on [CDZQRScanningViewController](https://github.com/cdzombak/CDZQRScanningViewController))
[![Version](https://img.shields.io/cocoapods/v/QRCodeReader.svg?style=flat)](http://cocoapods.org/pods/QRCodeReader)
## Usage
```swift
let reader = QRCodeReaderViewController()reader.resultCallback = {
println($1)
$0.dismissViewControllerAnimated(true, completion: nil)
}reader.cancelCallback = {
$0.dismissViewControllerAnimated(true, completion: nil)
}presentViewController(reader, animated: true, completion: nil)
```##### More
* Autofocus
* Cancel the operation by swiping the view down
* Turn on the flashlight 🔆 with force touch on the view## Requirements
* iOS 8.0+
* Xcode 6.3 (Swift 1.2)## Installation
QRCodeReader is available through [CocoaPods](http://cocoapods.org). To install
it, simply add the following line to your Podfile:```ruby
pod "QRCodeReader"
```You will also need to make sure you're opting into using frameworks:
```ruby
use_frameworks!
```Then run `pod install` with CocoaPods 0.36 or newer.
## Author
Ricardo Pereira, [@ricardopereiraw](https://twitter.com/ricardopereiraw)
## License
QRCodeReader is available under the MIT license. See the [LICENSE] file for more info.
[LICENSE]: /LICENSE