Skip to content

Commit

Permalink
Update podspec and README.
Browse files Browse the repository at this point in the history
  • Loading branch information
lm2343635 committed Dec 14, 2018
1 parent 98cb2fc commit 8f2b0ea
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ When we invoke the `clickTimes.accept(times)` method in the view model class, an
![Demo](https://raw.githubusercontent.com/lm2343635/RxAlertViewable/master/screenshots/demo.png)


#### Customization
### Customization

Customize your own strings and tint color using the following code.

Expand All @@ -67,6 +67,14 @@ RxAlertCreator.instance.config = RxAlertViewConfig(tip: "My Tip",
tintColor: .blue)
```

### Global Alert

RxAlertViewable supports to show a global alert view in a new UIWindow instance above the current window, by binding to the `rx.globalAlert` singal from any class.

```Swift
viewModel.globalTip.bind(to: rx.globalAlert).disposed(by: disposeBag)
```

## Author

lm2343635, lm2343635@126.com
Expand Down
2 changes: 1 addition & 1 deletion RxAlertViewable.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

Pod::Spec.new do |s|
s.name = 'RxAlertViewable'
s.version = '0.2'
s.version = '0.3'
s.summary = 'A simple alert library with RxSwift supported.'

s.description = <<-DESC
Expand Down

0 comments on commit 8f2b0ea

Please sign in to comment.