From the course: iOS App Development: Design Patterns for Mobile Architecture

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

RxCocoa – data binding

RxCocoa – data binding

From the course: iOS App Development: Design Patterns for Mobile Architecture

Start my 1-month free trial

RxCocoa – data binding

- [Instructor] We are now ready to consume the changes that we've made within the spy lens presenter in the spy list view controller. So first we're going to copy over these imports and bring them into here. We're also going to want to import RXCocoa. And the next thing that we're going to want to add into here, right after her let's go ahead and close our panels. We'll create a file private var, a bag equal to a new dispose bag, and again this just helps us mange memory and not have any memory leaks. We'll also make a file private var data source equal to RX table view section reload data source. And that's a big name for something really simple to work this. This basically makes it so that we can populate and bind to that list view. The next thing that we're going to put into here in our view did load. We're going to remove this delegate and data source assignment. And we'll add a couple of methods that we'll need to implement in a data source and init table view. We'll up these in…

Contents