© Bear Cahill 2021
B. CahillUI Design for iOS App Developmenthttps://doi.org/10.1007/978-1-4842-6449-2_15

15. Introduction to Combine

Bear Cahill1  
(1)
Denton, TX, USA
 

We’ve already been using the Combine framework a good bit. Now we’re going to pause on SwiftUI and look a bit more closely at Combine.

Apple describes the framework as “a unified, declarative API for processing values over time.” The part I want to focus on is the “processing values over time.”

That’s how we’ve been using Combine so far. As our values have changed over time, our UI has updated. We used @State, @Binding, @Published, and more.

Using these wrappers in SwiftUI has really facilitated changes reflected in our UI. But it can be easy to confuse these Combine framework aspects ...

Get UI Design for iOS App Development: Using SwiftUI now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.