To get access to the contents of the whole book you need to purchase a copy.
Introduction
SwiftUI is very approachable, allowing developers to build functional interfaces quickly and easily. However, as projects grow in complexity, the initial ease of use can give way to subtle architectural challenges.
It may not always be obvious when design and architectural choices are merely a matter of style or fundamental errors that will eventually compromise the application. While some decisions are subjective, others can directly impact application stability and runtime performance.
In an era where AI-assisted coding is becoming the norm, the ability to discern the right patterns from hard-to-spot anti-patterns has never been more critical.
I wrote "The SwiftUI Way" for developers already working with SwiftUI who are looking for deeper guidance on making the right technical trade-offs.
In this guide, we'll explore the nuances of view structuring to ensure architectures remain manageable as features grow. We'll examine the selection of tools for data dependencies to avoid unnecessary re-renders and identify performance bottlenecks before they impact the user experience. Furthermore, we'll look at how to leverage SwiftUI's native tools to build robust interfaces while knowing exactly when and how to customize them appropriately. The goal of this book is to help you build an intuition for working with the framework rather than against it.
The insights gathered here stem from my experience using SwiftUI in production since its initial release, contributing to projects of various scales, and consulting for numerous developers. This perspective has allowed me to identify common pitfalls and recognize where many developers struggle with the framework.
Crucially, this guidance also draws on my experience working on the core SwiftUI team at Apple. Having been involved in the internal mechanics of the framework, I have seen firsthand how decisions about APIs are made, what the creators of SwiftUI expect from the call site, and how the system is fundamentally designed to be used.
I hope this book will help you build a deeper alignment with the framework's core principles, allowing you to focus less on fighting the system and more on crafting exceptional user experiences.
The content of this book is copyright Nil Coalescing Limited. It may not be shared or redistributed without prior written permission. If you discover any issues or would like to provide feedback, you can contact support@nilcoalescing.com. Release notes and updates are available at books.nilcoalescing.com/the-swiftui-way.