Skip to content

Commit 7fa37d7

Browse files
authored
Merge pull request #78 from milkit/fix-readme
Fix README to adapt Swift3 style
2 parents 11dc383 + 499ffed commit 7fa37d7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Readme.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ Notice that the first generic parameter is the type of the input, and the second
3737
You can also specify an `enabledIf` parameter to the `Action` initializer.
3838

3939
```swift
40-
let validEmailAddress = emailTextField.rx_text.map(isValidEmail)
40+
let validEmailAddress = emailTextField.rx.text.map(isValidEmail)
4141

4242
action: Action<String, Bool> = Action(enabledIf: validEmailAddress, workFactory: { input in
4343
return networkLibrary.checkEmailExists(input)
@@ -79,7 +79,7 @@ A more complex use case can be a single action related to a `UIViewController` t
7979
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:
8080

8181
```swift
82-
let action = UIAlertAction.Action("Hi", style: .Default)
82+
let action = UIAlertAction.Action("Hi", style: .default)
8383
```
8484

8585
Installing

0 commit comments

Comments
 (0)