Join Jon Bott for an in-depth discussion in this video Network with Rx, part of RxSwift: Design Patterns for iOS Developers.
- [Narrator] The next thing that we're going to look at…is another type of network example.…If you remember in the basic example view controller…we were using URL session data tasks to load…an actual JSON object that we parsed and then presented.…Another way of doing this is working with a library called…Alamofire and RxAlamofire.…Let's go ahead and go to the network layer…plus extensions and this is an RxAlamofire implementation…hitting a similar end point…that will return a list of postings to us.…
This is all we have to do is write this…and then it will return an observable…that we can respond to.…So the next part is to go to the model layer…and consume that.…Go ahead and collapse these other layers.…We'll also need to add something right up here on line 11.…We'll make a new messages variable array…that we will be responding to.…So we'll say variable of type array of message.…And message is just another POSO, it has similar properties.…
Let's take a look at message.…Again we just have these four fields on this class…
- 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.