RxQRScanner
Popup QRScanner like a boss
import RxQRScanner
button.rx.tap
.flatMap { [unowned self] in QRScanner.popup(on: self) }
.map({ (result) -> String? in
if case let .success(str) = result { return str }
return nil
})
.bind(to: label.rx.text)
.disposed(by: disposeBag)
Example
To run the example project, clone the repo, and run pod install
from the Example directory first.
Requirements
- iOS >= 9.0
- Swift 5
Installation
RxQRScanner is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'RxQRScanner', '~> 2.0'
Author
wddwycc, [email protected]
License
RxQRScanner is available under the MIT license. See the LICENSE file for more info.