Join Jon Bott for an in-depth discussion in this video Threading in UI, part of RxSwift: Design Patterns for iOS Developers.
- [Instructor] So the last thing to do…is to clarify threading a little bit.…Let's come up into here, just copy this region,…and we'll make a new region for us to work in.…We'll also come into this old tableView area.…Make it a block quote, and just minimize that.…Collapse it, and in here we're going to say…this is a Threading, in fact a UI Threading area.…And I'll call something called threading.…
And let's go ahead and consume this up in our rxExamples.…Come back down to here, and all I'm going to do in here…is say presenter.friends.asObservable….subscribe, just do the onNext.…In fact we won't even worry about the specific types of this…we'll say subscribe on event,…and I don't care about the event here, I'll say weak self,…'cause we'll be using that within here, hold this block over…and disposed(by: bag).…
And in here, I just want to print out a couple of statements…about what thread we are on.…So I'll say print, and in here I'll say…stoplight for notification, current thread…is Thread.current, we'll use that in a moment.…
- 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.