File tree Expand file tree Collapse file tree 2 files changed +23
-0
lines changed
Pages/Playground.xcplaygroundpage Expand file tree Collapse file tree 2 files changed +23
-0
lines changed Original file line number Diff line number Diff line change
1
+ /*:
2
+ > # IMPORTANT: To use **Rx.playground**:
3
+ 1. Open **Rx.xcworkspace**.
4
+ 1. Build the **RxSwift-macOS** scheme (**Product** → **Build**).
5
+ 1. Open **Rx** playground in the **Project navigator**.
6
+ 1. Show the Debug Area (**View** → **Debug Area** → **Show Debug Area**).
7
+ */
8
+ import RxSwift
9
+ /*:
10
+ # Try Yourself
11
+
12
+ It's time to play with Rx 🎉
13
+ */
14
+ playgroundShouldContinueIndefinitely ( )
15
+
16
+ example ( " Try yourself " ) {
17
+ // let disposeBag = DisposeBag()
18
+ _ = Observable . just ( " Hello, RxSwift! " )
19
+ . debug ( " Observable " )
20
+ . subscribe ( )
21
+ // .disposed(by: disposeBag) // If dispose bag is used instead, sequence will terminate on scope exit
22
+ }
Original file line number Diff line number Diff line change 13
13
<page name =' Error_Handling_Operators' />
14
14
<page name =' Debugging_Operators' />
15
15
<page name =' Enable_RxSwift.resourceCount' />
16
+ <page name =' Playground' />
16
17
</pages >
17
18
</playground >
You can’t perform that action at this time.
0 commit comments