Skip to content

Commit a06cf1d

Browse files
committed
Change combineLatest -> Observable.combineLatest
1 parent b8874c0 commit a06cf1d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Action.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public final class Action<Input, Element> {
5656
}
5757
self.workFactory = workFactory
5858

59-
combineLatest(self._enabledIf, self.executing) { (enabled, executing) -> Bool in
59+
Observable.combineLatest(self._enabledIf, self.executing) { (enabled, executing) -> Bool in
6060
return enabled && !executing
6161
}.bindTo(_enabled).addDisposableTo(disposeBag)
6262
}

Demo/Demo/ViewController.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ class ViewController: UIViewController {
5151

5252
// Demo: observe the output of both actions, spin an activity indicator
5353
// while performing the work
54-
combineLatest(
54+
Observable.combineLatest(
5555
button.rx_action!.executing,
5656
self.navigationItem.rightBarButtonItem!.rx_action!.executing) {
5757
// we combine two boolean observable and output one boolean

0 commit comments

Comments
 (0)