Thinking in swiftui hero 500w

New Early Access

Thinking in SwiftUI

A Transition Guide

by and

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.

Book Contents

  • View Updates

    Learn how to efficiently construct and update view trees in SwiftUI.

  • 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, and learn how to create custom animations.

  • Advanced Layout

    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.

  • Exercises

    Deepen your understanding by solving the exercises at the end of each chapter.

Video Episodes

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.

Formats & Extras

Buy Book


Choose a Format
Choose a Format

You’ll need to confirm team size at checkout.

Choose a Format

You’ll need to confirm team size at checkout.

Choose a Format

You’ll need to confirm team size at checkout.

About the Authors

FAQ

Updates