____ ______ ______
| _ \ __ __/ ___\ \ / / _ \
| |_) |\ \/ /\___ \\ \ / /| |_) |
| _ < > < ___) |\ V / | __/
|_| \_\/_/\_\|____/ \_/ |_|
To run the example project, clone the repo, and run pod install
from the Example directory first.
RxSVP is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'RxSVP'
textField.rx.text.orEmpty
.filter { $0.count > 5 }
.map { _ in () }
.bind(to: SVProgressHUD.rx.info(status: "密码不可以大于 5 位"))
.disposed(by: rx.disposeBag)
loginButton.rx.tap
.bind(to: SVProgressHUD.rx.loading(status: "登录中..."))
.disposed(by: rx.disposeBag)
infoButton.rx.tap
.map { _ in "请登录" }
.bind(to: SVProgressHUD.rx.info)
.disposed(by: rx.disposeBag)
errorButton.rx.tap
.map { _ in "网络错误" }
.bind(to: SVProgressHUD.rx.error)
.disposed(by: rx.disposeBag)
succesButton.rx.tap
.bind(to: SVProgressHUD.rx.success(status: "登录成功"))
.disposed(by: rx.disposeBag)
dismissButton.rx.tap
.bind(to: SVProgressHUD.rx.dismiss)
.disposed(by: rx.disposeBag)
RxSVP is available under the MIT license. See the LICENSE file for more info.