Skip to content

Commit 22d7c8b

Browse files
fix spacing
1 parent 719e219 commit 22d7c8b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Readme.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,8 @@ button1.rx.bindTo(action) {_ in return "Hello"}
7272
button2.rx.bindTo(action) {_ in return "Goodbye"}
7373
```
7474

75-
`button1` and `button2` are sharing the same `Action`, but they are feeding it with different input ("Hello" and "Goodbye" that will be printed for corresponding tap).
75+
`button1` and `button2` are sharing the same `Action`, but they are feeding it with different input (`Hello` and `Goodbye` that will be printed for corresponding tap).
76+
7677
A more complex use case can be a single action related to a `UIViewController` that manages your navigation, error handling and loading state. With this approach, you can have as many `UIButton`s (or `UIBarButtonItem`s) as you want and subscribe to `executing`, `errors` and `elements` once and in a single common place.
7778

7879
There's also a really cool extension on `UIAlertAction`, used by [`UIAlertController`](http://ashfurrow.com/blog/uialertviewcontroller-example/). One catch: because of the limitations of that class, you can't instantiate it with the normal initializer. Instead, call this class method:

0 commit comments

Comments
 (0)