RxSwift with CocoaPods

It is very easy to work with CocoaPods; you can install RxSwift like any other library by making use of a pod file. A simple example of a pod file is as follows:

use_frameworks!target 'YOUR_TARGET_NAME' dopod 'RxSwift'pod 'RxCocoa'end

RxTests and RxBlocking make the most sense in the context of unit/integration tests:

target 'YOUR_TESTING_TARGET' do     pod 'RxBlocking'     pod 'RxTest'end

It's totally up to you to include any number of libraries with the RxSwift library, depending on your requirements. Of course, you can choose just one, a combination of RxSwift and RxCocoa, or all of them.

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.