A blog exploring functional programming and Swift.

A Crash Course in Combine

Wednesday Nov 20, 2019

At this year’s WWDC, Apple introduced the Combine Framework, a composable library for handling asynchronous events over time, providing another alternative to open source libraries like ReactiveSwift and RxSwift.

The Combine framework is seriously powerful, and is responsible for handling a lot of SwiftUI’s high-level state management solutions under the hood! It’s a great library in its own right, and a worthy addition to your own libraries and application code.

The past couple weeks we have released two completely free videos dedicated to studying the Combine framework from first principles and showing how you can incorporate it into a library or application of your own:

  • The Combine Framework and Effects: Part 1: In this video, we explore Combine’s core components, including the Publisher and Subscriber protocols. We also cover some convenience functions and operators, which are layered over these more basic units.

  • The Combine Framework and Effects: Part 2: In this video we show how the Combine framework can be used to describe side effects in a reducer-based architecture, like Redux. We take an existing library we’ve been experimenting with and use Combine to help solve a critical problem.

If you’re curious about what SwiftUI has to say about architecture (and what it doesn’t have to say), we also have 3 free videos that explore just that:

We’re pretty excited about what Apple introduced this year and we can’t wait to see what it enables folks to build and how it evolves in the future!

Subscribe to Point-Free

👋 Hey there! If you got this far, then you must have enjoyed this post. You may want to also check out Point-Free, a video series covering advanced programming topics in Swift. Consider subscribing today!