
Updated for iOS 17 Early Access
Thinking in SwiftUI
A Transition Guide
by Chris Eidhof and Florian Kugler
SwiftUI is radically different from UIKit. In this short book, we will help you build a mental model of how SwiftUI works. We explain the most important concepts in detail and help you build a solid foundation for understanding SwiftUI.
Since SwiftUI is a large framework, the book focuses on the concepts behind the framework that we believe are essential to understand. It is not a reference for SwiftUI’s platform-specific APIs, but rather a guide to honing your intuition about how SwiftUI works.
Thinking in SwiftUI is geared toward developers who have both prior experience with Apple’s platforms and a good understanding of the Swift language.
What’s Early Access?
We're almost finished with writing the book. During the early access phase, we'll release a new chapter every week. There will also be a weekly video Q&A, and you'll have the chance to ask us questions directly. We'll release the final version once the new APIs are out of beta.
Book Contents
-
View Trees
Learn how view trees form the foundation behind many concepts in SwiftUI.
-
State and Binding
Learn how to efficiently model, observe and update your state.
-
View Layout
Understand how the layout algorithm works and how to utilize the built-in layout modifiers and container views.
-
Animations
Work with implicit and explicit animations, transitions, and learn how to create custom animations.
-
Advanced Layout
Build custom layout containers using the layout protocol, preferences, geometry readers, and anchors.
-
Preferences and Environment
Learn how to use SwiftUI's preference and environment systems for your own views.
Formats & Extras
-
Ebook
-
PDF
-
Buy Book
Bundles
Save on each additional book
About the Authors
-
Chris Eidhof
Chris is one of the objc.io co-founders, and host of Swift Talk. He also co-authored the Functional Swift, Advanced Swift, and Thinking in SwiftUI books. Before, he wrote apps such as Deckset.
-
Florian Kugler
Florian is one of the objc.io co-founders. He worked on Mac Apps like Deckset, co-authored the Functional Swift, Core Data, Advanced Swift, and Thinking in SwiftUI books, and hosts the weekly Swift Talk video series.
FAQ
-
Will you charge for future updates?
Only when those updates are extensive. For more information on our policy, see book updates.
-
Do I need to know Swift before reading this book?
We assume you have a working knowledge of Swift and have read the introductory book by Apple. Advanced Swift will be helpful as well.
-
Do you provide training?
Yes, we provide workshops and training. If you're interested, email us.
-
Can I get a “reverse charge” invoice without VAT?
Yes, just click the "Generate Invoice" link in the receipt email and fill out your company data to get a VAT refund.
Updates
-
Jun 2023 First preview for the latest SwiftUI version (Xcode 15 / iOS 17)
-
Dec 2020 Updated for the latest SwiftUI version (Xcode 12 / iOS 14)
-
July 2020 First preview for the updated SwiftUI (Xcode 12 / iOS 14)
-
March 2020 Initial release
-
February 2020 Early access