Join Jon Bott for an in-depth discussion in this video Grouping tasks, part 2, part of RxSwift: Design Patterns for iOS Developers.
- [Instructor] So we've created the NetworkLayer.…Let's go up to the ModelLayer.…Go ahead and collapse these other ones…that we don't really care a lot about.…And this layer oftentimes is just a simple pass through.…Sometimes it coordinates between…the NetworkLayer and the DatabaseLayer,…but in this case, the tasks is just going to be…a simple pass through.…So extension,…ModelLayer…and then here, I'll say func loadInfo for people.…
Going to be in an array of Person…and we're going to return an observable of an array of String.…And literally, we're just passing through…networkLayer.loadInfo for…people.…So next, let's go to the Tasks Example Presenter.…And in here, let's go ahead at the top…and say, let peopleInfo equals variable.…
And this will take an array of String.…We'll give it a default value of an empty array…and then, in this extension, we'll say,…func loadPeopleInfo…and again, it'll return an observable of an array of String.…And we're just bubbling that up.…ModelLayer.…Oh, we don't have an instance of that.…
- 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.