SwiftUI is radically different from UIKit. So 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 we follow them up with exercises to give you hands-on experience.
SwiftUI is still a young framework, and as such, we don’t believe it’s appropriate to write a complete reference. Instead, this book focuses on transitioning your way of thinking from the object-oriented style of UIKit to the declarative style of SwiftUI.
Thinking in SwiftUI is geared toward readers who are familiar with Swift and who have experience building apps in frameworks like UIKit.
Learn how to efficiently construct and update view trees in SwiftUI.
Understand how the layout algorithm works and how to utilize the built-in layout modifiers and container views.
Work with implicit and explicit animations, and learn how to create custom animations.
Build custom layout containers using preferences, geometry readers, and anchors.
Preferences and Environment
Learn how to use SwiftUI’s preference and environment systems for your own views.
Deepen your understanding by solving the exercises at the end of each chapter.
The videos will include live coding of advanced layout techniques, animations, and solutions to the exercises from the book. The videos build upon the text, and they will be released together with the final version of the book.