In this challenge, create a simple Combine publish and subscribe project in Playgrounds, implementing a publisher, subject, and operator, to call a static JSON endpoint.
(upbeat music) … - [Instructor] In your first challenge, … to tie in your understanding of the chapter, … we'll create a simple playground … that will consist of a publisher, subscriber and operator. … You will start off by creating a publisher … that will emit the values of a preset Boolean array. … You will then create a counterpart subscriber … that will listen for that broadcast … and assign the results to a preset text field … is enabled properly. … To enable or disable bad text fields. … Finally, you will create an operator … that will drop the first two elements from that broadcast. … I know this is a bit of a contrived use case, … but it will demonstrate some of the basics from this chapter … in preparation for the videos ahead. … Switch to Xcode and select the exercise playground file. … Good luck. … …
- Functional reactive programming techniques
- Transmitting data with publishers
- Consuming data with subscribers
- Publishing data
- Creating a simple Combine data stream
- Calling REST APIs
- Handling errors
- Using testing
- Managing threads with schedulers
- Throttling publisher data
- Leveraging advanced operators
Skill Level Advanced
1. Introduction to Combine
2. Combine Fundamentals
3. Work with REST APIs
4. Advanced Concepts
Go forth and code1m 31s
- 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.