RxSwift in action
RxSwift
is a library, and we need to import it to our code base in order to invoke the functionality on offer and implement reactive components in our code. There are different ways to set up the environment to develop Rx code
in Swift, and we will cover all of them in this chapter, but we will pick one out of the discussed methods and use that in the rest of the book. You are free to pick your implementations as each one serves the same primary requirement.
Once the environment is set up, we will start writing the code and from here onward, you will realize that we will work with code comparatively. Less theory and more hands on!
Let's build the environment first
RxSwift
is the reactive extension for Swift and can be found for free at https://github.com/ReactiveX/RxSwift. Since the library is distributed under the MIT license, you are free to use it in your commercial apps on an as-is basis like any other MIT-licensed software provided to you, which includes a copyright notice...