Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
liangdahong committed May 13, 2021
1 parent a0bb6eb commit 618e474
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,22 @@ it, simply add the following line to your Podfile:
pod 'RxSVP'
```

```swift
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)

dismissButton.rx.tap
.bind(to: SVProgressHUD.rx.dismiss)
.disposed(by: rx.disposeBag)
```

## Author

hi@liangdahong.com
Expand Down

0 comments on commit 618e474

Please sign in to comment.