SkillAgentSearch skills...

RxQRScanner

QRScanner in Rx style

Install / Use

/learn @wddwycc/RxQRScanner
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

RxQRScanner

Version License Platform

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, wddwyss@gmail.com

License

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

Related Skills

View on GitHub
GitHub Stars12
CategoryDevelopment
Updated4y ago
Forks2

Languages

Swift

Security Score

80/100

Audited on Nov 17, 2021

No findings