Configuring cell rows in a TableView

First, we will need to import the Rx libraries that we will be using, that is, RxSwift and RxCocoa, and we will do a quick build in order to make them available. We will also create a disposeBag property to dispose of subscriptions, as we did earlier.

Next, we need to convert our data into an Observable Sequence. We will use the Observable.of operator. option + click on data to see its data type, and you will see that it is an array Observable of the Developer type. The following screenshot shows this:

The code changes that we have done so far are as follows:

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.