Project setup

As discussed earlier, we need to set up a workspace to work with RxSwift:

  1. Create a single view application project and name it RxBasics.
  2. Open Terminal and navigate to the project folder. Create a pod file inside your Xcode projects folder by executing the pod init command.
  3. Open the created pod file and paste the pod file's code:
# Uncomment the next line to define a global platform for your project   target 'RxBasics' do # Comment the next line if you're not using Swift and don't want to use dynamic frameworks use_frameworks!                                             pod 'RxSwift' # Pods for RxBasics                                      end
  1. Enter the pod install command to fetch all the listed libraries from GitHub and install all of them in the project.
  2. As a result of this installation, you will find ...

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.