Available from Gumroad
Combine is about to replace all those things you thought you knew about how we pass information around in an iOS or macOS App.
Target-Action, callbacks, closures, delegates, notifications... all of them.
This hand-on, fast-moving kickstart introduces you to the future of declarative and reactive programming on Apple platforms. We focus on core concepts and building discrete, easy-to-understand, pieces of a pipeline that allows your app to react to changes in the state.
Updated for Xcode 12 and Swift 5.3 and tested on Apple Silicon.
Chapter 1: The Forest
Without Combine
SwiftUI
Did Set
Publishers
Subscribers
Subscriptions
Operators
Road Map
Credits, Bio, and Version History
Chapter 2: Moving Out
A Second Module
Published Value
Distance
Republishing
Assign
Understanding Operators
Making Operators
So...
Chapter 3: Sending Messages
Hiding the Model
KVO
Notifications
Subjects
Sending Nothing
Observable Objects
Custom Publisher Properties
Observables and SwiftUI
So...
Chapter 4: Not Everything Lasts Forever
The Conversation
Drop and Prefix
The Kitchen Sink
Just, Empty, and Fail
Try Map
Catch
Flat Map
So...
Training from Dim Sum Thinking