Setting up the environment

Carthage and CocoaPods are the easiest ways to include RxSwift/RxCocoa in your projects. You can also use the Swift package manager, but in this book we will use CocoaPods to set up the RxSwift environment, so ensure that you use CocoaPods while working with sample projects and other examples in this book.

Most developers are used to command and click when they need to jump over to the source code of the method they are working with; in order to facilitate similar behavior, it makes more sense to work with CocoaPods while you are in the learning phase. When it comes to your projects, feel free to use any method discussed earlier and the one that suits your workflow the best.

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.