Learning Combine with Swift

Learning Combine with Swift

English | MP4 | AVC 1280×720 | AAC 48KHz 2ch | 1h 29m | 303 MB

Combine is a monumental paradigm shift in the Apple programming mindset. Combine provides Swift developers with a declarative functional approach to interacting with APIs, as well as SwiftUI components, over time, through a publisher/subscriber model. The introduction of Combine gives you a native way to manage asynchronous events in Swift, without relying on third-party reactive frameworks. This course explores the Combine life cycle, including publishing, manipulating, and receiving data streams, and explains how to apply these fundamentals to interact with REST APIs and UI components. Instructor and iOS engineer Doron Katz also introduces advanced techniques, such as throttling data streams and leveraging advanced operators. This introductory course should enable you to start putting Combine into practice in your own app development workflow.

Topics include:

  • 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
Table of Contents

1 Power up your app with Combine
2 What you should know
3 What is Combine
4 Shift to functional reactive programming
5 Overview of SwiftUI
6 Advantages of Combine
7 Understand the Combine life cycle
8 Transmit data with publishers
9 Manipulate data with operators
10 Consume data with subscribers
11 Publish and subscribe to data with subjects
12 Publish data once with Future and Just
13 Challenge Create a simple Combine data stream
14 Solution Create a simple Combine data stream
15 Call REST APIs with DataTaskPublisher
16 Handle errors with Combine
17 Unit testing and Combine
18 Challenge Use Combine to call an API endpoint
19 Solution Use Combine to call an API endpoint
20 Manage threads with schedulers
21 Work with custom publishers and subscribers
22 Throttle publisher data with backpressure
23 Abstract Combine implementations with type erasures
24 Leverage the Combine advanced operators
25 Challenge Call an API using schedulers and backpressure
26 Solution Call an API using schedulers and backpressure
27 Go forth and code