SwiftUI and Combine Framework

At the Apple Worldwide Developer Conference (WWDC) in 2019, Apple took a lot of us by surprise with the announcement of SwiftUI, a brand new user interface (UI) framework written from the ground up, entirely in Swift.

Making use of the declarative programming paradigm, SwiftUI not only offers a powerful way to programmatically create and design your UI but a functional and logical approach too.

Alongside many other announcements at WWDC 19, Apple also announced its very own entry into the reactive programming stream with a new framework called Combine. Combine replaces the traditional delegate pattern most of us will be accustomed to in iOS and macOS development.

With SwiftUI's change to the dynamics of how UI ...

Get Swift Cookbook - Second 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.