11
Driving SwiftUI with Combine
In this chapter, we’ll learn how to manage the state of SwiftUI views using Combine
. At the Worldwide Developers Conference (WWDC) 2019, Apple not only introduced SwiftUI but also Combine
, a perfect companion to SwiftUI for managing the declarative change of state in Swift.
In recent years, given the success of Functional Reactive Programming (FRP) in different sectors of the industry, the same concept has been used in the iOS ecosystem. It was first implemented with ReactiveCocoa
, the original framework in Objective-C. That framework was converted into Swift with ReactiveSwift
. Finally, it was converted into RxSwift
, which became the default framework for performing FRP in iOS.
In a typically Apple way, Apple ...
Get SwiftUI Cookbook - Third Edition 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.