Join Jon Bott for an in-depth discussion in this video Observable with UI, part of RxSwift: Design Patterns for iOS Developers.
- [Instructor] Now that we've seen how…to create simple observables,…let's look at a real world example.…Come into here…and we'll open up the basic example view controller.…And the first thing we're going…to do within here is to create a dispose bag…for us to work with.…Private let bag equals DisposeBag,…and then we'll just make a method…that we'll implement below.…We'll say realObservableExample…extension BasicExampleViewController…and we'll just make that function.…
We're not going to do a lot in here yet…because we're going to have a couple of other methods…to help break things apart.…But at the very least, we'll say loadPost.…And I'll just put a note here…that this is usually done in the network layer…but we're keeping this all in one spot…to make this a simple example to work with.…This loadPost needs…to return an observable of type posting.…So let's do that as our first thing,…actually let's give us some more space to work with.…
And in here we'll just return…that Observable.create…and I'll say you are receiving an observer…
- 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.