How to import RxSwift in Playground of xcode?

Istiak Morsalin picture Istiak Morsalin · Feb 7, 2017 · Viewed 7.6k times · Source

I am trying to import rxswift in xcode playground by this:

gem install cocoapods-playgrounds

and after that

pod playgrounds RxSwift

But it is not happening. How to do it?

Answer

XFreire picture XFreire · Feb 7, 2017
  1. You should clone the RxSwift repository on your computer
  2. Open Rx.xcworkspace
  3. Build the RxSwift-macOS scheme
  4. Open Rx.playground in the Rx.xcworkspace tree view and add a new page
  5. import RxSwift in the new page.
  6. Choose View > Debug Area > Show Debug Area

steps 3 and 4

step 5