Steps to set up

  1. Launch Xcode and create a single view application, as shown:
  1. Launch Terminal app and navigate to the project directory.
  2. Initialize the podfile by executing pod init in the terminal and then open the created podfile in any text editor:
  1. Add the following code to the podfile:
# Uncomment the next line to define a global platform for your project# platform :ios, '9.0'target 'RxSwiftLoginView' do# Comment the next line if you're not using Swift and don't want to use dynamic frameworksuse_frameworks!pod 'RxSwift', '~> 3.6'

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.