Join Jon Bott for an in-depth discussion in this video Core Data with Rx, part of RxSwift: Design Patterns for iOS Developers.
- [Instructor] Let's talk about RxSwift with Core Data.…Core Data by itself is already a complicated subject…and well beyond the scope of this course.…Adding RxSwift to it can complicate things even more…but we'll cover some guidelines…to help keep things easier to work with.…The issue is always threading.…Core Data is not thread safe, meaning that,…if you load a managed object on one thread,…you can't pass it to another thread and use it safely.…This becomes an issue when you want to start…introducing threading for performance,…so you have two choices.…
The first is to keep everything on the main thread,…which just means it's single threaded.…Or the second, means making changes on background threads…and passing managed object IDs…and then loading those objects again on the main thread,…but that would mean that you're on the main thread,…which puts us right back where we started.…Both of these kind of ruin…the point of using threading within Core Data…and they can add a lot of complexity to the data layer.…I said there were two options,…
- 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.