Skip to content

Commit 594ebf8

Browse files
committed
Make the action last for 2 seconds on bar button item
1 parent fca5046 commit 594ebf8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Demo/Demo/ViewController.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class ViewController: UIViewController {
3535
// Demo: add an action to a UIBarButtonItem in the navigation item
3636
self.navigationItem.rightBarButtonItem!.rx_action = CocoaAction {
3737
print("Bar button item was pressed, simulating a 2 second action")
38-
return empty().delaySubscription(1, MainScheduler.sharedInstance)
38+
return empty().delaySubscription(2, MainScheduler.sharedInstance)
3939
}
4040

4141
// Demo: obseve the output of both actions, spin an activity indicator

0 commit comments

Comments
 (0)