Join Jon Bott for an in-depth discussion in this video Bind table views, part of RxSwift: Design Patterns for iOS Developers.
- [Instructor] The next piece that I want to focus on…is how we can work with table views.…When we run the app,…and we run the ReactiveUI example,…as soon as the friends are loaded,…I would've expected the friends list…to be populated, but it's not.…So looking down at how we're consuming this,…you can see that we are building it off of the friends array…and we're doing the same number of rows in section,…cell for row at index path, number of sections is one,…but if you remember correctly, when we come into friends…we initialize it as an empty array.…
Yes, we have changed the values eventually at this point,…but we're not reacting to this at all in the UI.…So let's come up to the top,…and we'll say make a new section, call it rxTable.…Come down to here, just copy these two.…And we'll call this rxTable.…
And in here, we're going to make a method…that currently responds to that data source on it.…So presenter dot friends dot as observable dot observe on…main scheduler dot instance dot subscribe.…Just care about the onNext event.…
- RxSwift syntax
- Creating simple observables
- Architecting the model layer
- Using Core Data
- Grouping tasks
- Changing UI
- Threading in the model and UI
Skill Level Intermediate
Learning Server-Side Swift Using IBM Kiturawith Mohammad Azam1h 51m Intermediate
Swift 4: Protocol-Oriented Programmingwith Károly Nyisztor1h 44m Intermediate
Swift: Writing Reusable Frameworkswith David Okun1h 49m Intermediate
1. The Basics
2. Model Layer
3. Presenter and View
Next steps1m 17s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.