Installing RxSwift with Carthage

Using Carthage is pretty much similar to working with CocoaPods. Install the latest version of Carthage by following the steps mentioned at https://github.com/Carthage/Carthage#installing-carthage.

Create a new file in your project named CartFile and add the following code to this file:

github "ReactiveX/RxSwift" ~> 3.6

Use the Terminal.app to execute the Carthage update command from the folder containing the newly created CartFile.

Once this command is executed, you will see framework files in the Carthage folder present inside the current folder. All the libraries mentioned on the CartFile are downloaded and built to form a framework file in this step and hence it might take some time. Include the framework in your project and build the project once again so that Xcode finds the newly added framework files. You are ready to go now.

As mentioned earlier in the chapter, we will use CocoaPods throughout this book and we recommend using it.

In the next sections, we will create a simple single view application where we will validate login credentials entered by the user and then decide whether they are allowed to log in or not.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset