Join Jon Bott for an in-depth discussion in this video MVP/MVVM: Architecture with Rx, part of RxSwift: Design Patterns for iOS Developers.
- [Instructor] A lot of examples…that you'll find for RxSwift are basic…and often with code all in one spot,…but with the push for a more architected code base…using patterns such as MVP, MVBM, Viper, et cetera,…some of my first questions were how do I apply RxSwift…through the different layers?…We'll walk through some examples of how to do this…in the different layers,…but first I'm going to give you a list of things…to think about as you approach this.…First, it's easier if you design all APIs…as asynchronous methods…instead of returning a value directly.…
This makes a lot of sense when working…within the model layer and below.…Generally network, database,…and file I/O tasks tend to be longer running,…and an asynchronous API keeps the model layer…from blocking UI.…So even if your database method returns immediately,…it would be easier if all consumers…are using the same type of APIs…and assume a callback will be used…whenever the data is ready.…Now, I'm saying callbacks,…but the second guideline is to return observables…
- 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.