Preface
SwiftUI is the modern way to build user interfaces for all Apple platforms. SwiftUI code is easy to read and write because it uses Swift’s declarative programming syntax. The new edition of this comprehensive cookbook includes fully updated content, code samples and a companion GitHub repository for SwiftUI 5, iOS 17, Xcode 15, and Swift 5.9.
This book covers the foundations of SwiftUI, as well as the new features of SwiftUI 5 introduced in iOS 17. Particular attention is given to illustrating the interaction between SwiftUI and the rest of an app’s code, such as concurrency with Combine and async/await, persistence with Core Data and Swift Data, and data visualization with Swift Charts.
With over 100 recipes for real-world user interfaces packed with best-coding practices, you’ll learn how to use SwiftUI to build visually compelling apps, from simple lists to complex interactive charts.