Project setup

As discussed earlier, let's set up a workspace to work with RxSwift:

  1. Create a single view application project and name it RxAdvancedOperators.
  2. Open Terminal.app and navigate to the project folder. Create a podfile inside your Xcode projects folder by executing the pod init command. Once the command is executed, you will see a Podfile in the project folder:
  3. Open the created Podfile and paste the Podfile code:
# Uncomment the next line to define a global platform for your projecttarget 'RxAvancedOperators' do# Comment the next line if you're not using Swift and don't want to use dynamic frameworksuse_frameworks!pod 'RxSwift' ...

Get Reactive Programming with Swift 4 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.