Building iOS Apps with SwiftUI
At the Apple Worldwide Developers Conference (WWDC) in 2019, Apple took a lot of us by surprise with the announcement of SwiftUI, a brand-new 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 2019, 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 changes to the dynamics of how UI patterns are written programmatically, Combine is a welcome addition alongside the SwiftUI framework.
In this chapter, we’ll take a tour of the inner workings of SwiftUI and how to build our very own app—alongside this, we’...