Binding data to UI

We will again start out in a basic single-view project with just a TapGestureRecogniser, UITextField, and a UIButton, as shown in the following screenshot:

Then, make the viewController the initial view controller, as shown in the preceding screenshot. As you can see, the corresponding view controller has some code to handle the interactions that the user will make with the view. We will start with the following basic code and build on top of it:

////  ViewController.swift//  RxSwiftDataBindings////  Created by Navdeep on 19/11/17.//  Copyright © 2017 Navdeep. All rights reserved.//import UIKitimport RxSwiftimport RxCocoaclass ...

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.