Join Jon Bott for an in-depth discussion in this video Changing UI subscription, bindTo, driver, part of RxSwift: Design Patterns for iOS Developers.
- [Instructor] The next place for us…to work in is the reactive UI view controller.…So let's go ahead and open that up.…And in here, we've changed the friends array.…It's now a variable array…so we need to just get the value out of here.…Then we won't have any complaints of errors.…And then lets come to the top of this class…and we'll start adding things.…So in here I'm going to just say fileprivate var bag…is equal to a DisposeBag.…
And then in here, I'm going to just put a note here saying…that it's a Regular DataSource…and below this, we're going to start looking…at some rxExamples.…We'll actually make it a whole region.…We'll just say, Mark.…rxExamples extension…reactive UI view.…Just copy this.…
We're now going to make a function for this.…and we're going to just save it.…The first example is going to be a title.…We'll copy, literally, this whole block.…And we'll just call this rxTitle.…In here we're going to cover the different ways…that we could subscribe to that observable.…
In this case, it happens to be a behavior subject…
- 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.