O'Reilly logo

Reactive Programming with Swift 4 by Navdeep Singh

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Binding data to UI

We will again start out in a basic single-view project with just a TapGestureRecogniserUITextField, 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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required