SwiftUI by Tutorials, Third Edition – Fully Updated with New Chapters!

We’re thrilled to announce the latest edition of SwiftUI by Tutorials — completely reorganized, with new apps and new chapters to help you build your best UI ever! By Chris Belanger.

Save for later
Share

Just as the SwiftUI framework has continued to evolve ever since Apple debuted it in 2019, we’ve continued to update SwiftUI by Tutorials, our premiere book on building modern, declarative UI, right alongside!

In this Third Edition update, we’ve taken a lot of cues from you, our reader, on how you’ve been using SwiftUI in your own projects, as well thinking towards solutions to real-world problems you face when trying to leverage SwiftUI in the most efficient and elegant way possible.

We’ve also updated a number of the apps in the book with some fresh, new SwiftUI-inspired designs, to show you everything you can achieve when building fluid, responsive UI.

So we’re excited to announce that SwiftUI by Tutorials is now fully updated, with new apps and new chapters, and is out today in its Third Edition! It’s truly your best, most complete guide to building fluid and engaging declarative UI for your apps — using less code than you thought possible.

Keep reading to see what’s inside, and how you can get your copy today!

What is SwiftUI by Tutorials?

SwiftUI by Tutorials is designed to help you learn how to transition from the “old way” of building your app UI with UIKit, to the “new way” of building responsive UI with modern declarative syntax with SwiftUI.

What’s more is that SwiftUI lets you build modern, responsive UI and animations for all Apple devices — not just iOS. So whether you’re building apps for iOS, watchOS, tvOS, macOS, or any other Apple platform, you can use the same concise, natural language to describe your UI and have it look stunning — no matter where your code runs.

Who is this Book For?

This book is for readers who are comfortable building Swift apps, and want to make the exciting leap into building their app UI with modern, declarative code.

It’s also for advanced developers who want to dive deeper into the nuances of SwiftUI, and build more complex interfaces, use custom gestures, or even go the distance and port iOS apps to macOS!

What’s Inside SwiftUI by Tutorials?

We’ve completely overhauled this edition of the book — and when you check out the book, you’ll see this immediately! We’ve rewritten existing chapters, updated every section, added new chapters, and reorganized content to help you find precisely the information you’re looking for.

SwiftUI by Tutorials takes you from SwiftUI novice to expert over 21 massive chapters, spanning six sections:

Section I: Diving Into SwiftUI

Start your SwiftUI journey with the foundations you need!

Learn how to build modern and fluid UI, including implementing skeuomorphic design!

Learn how to build modern and fluid UI, including implementing skeuomorphic design!

  1. Introduction: In this chapter, you’ll get an overview of the book as a whole, as well as the apps you’ll be building as you learn the fundamentals of SwiftUI!
  2. Getting Started: Get started with SwiftUI! Learn about the basic terminology, and discover the power of building your interface directly in the preview canvas. Check how SwiftUI makes declarative development easy and straightforward, and how you can drag and drop as you used to do with storyboards.
  3. Diving Deeper Into SwiftUI [New!]: SwiftUI’s declarative style makes it easy to implement eye-catching designs. You can create reusable modifiers to unify your design. In this chapter, you’ll implement a neumorphic Figma design for RGBullsEye.
  4. Testing & Debugging: We all know how important testing is in modern application development. See how to apply UI Testing to your SwiftUI apps in this very simple, yet powerful chapter.

Section II: Building Blocks of SwiftUI

Build on what you’ve learned in Section I to begin using SwiftUI in more complex and advanced apps.

Build up your knowledge of more complex SwiftUI elements as you build out real-world apps!

    Build on what you’ve learned in Section I to begin using SwiftUI in more complex and advanced apps.

    Build up your knowledge of more complex SwiftUI elements as you build out real-world apps!

  1. Intro to Controls – Text & Image: Learn how to add and configure different SwiftUI controls within your apps. Discover modifiers in a practical way and how they can be shared across controls or used individually. Get an introduction to container views and how to use them with SwiftUI.
  2. Controls & User Input: Discover some of the most common controls in user interfaces such as TextFields, Buttons, Toggles, Sliders and Steppers, and how to use them with SwiftUI.
  3. Introducing Stacks & Containers: Dig in to the powerful capabilities of vertical and horizontal stacks. See how easy it is to apply them to your app layout and to nest them to generate almost any possible combination. Stacks are back, stronger than before, and will for sure become a game-changer in SwiftUI.

Build up your knowledge of more complex SwiftUI elements as you build out real-world apps!

Section III: State & Data Flow

Learn how your user interface reacts to data flow and state changes.

Learn about state and data flow – and how to incorporate accessibility into your app as well!

Learn about state and data flow – and how to incorporate accessibility into your app as well!

  1. State & Data Flow — Part I [New!]: Learn how to bind data to the UI, how reactive updates take place in the UI through state management, and gain in-depth usage of the attributes related to SwiftUI.
  2. State & Data Flow – Part II [New!]: In the previous chapter you learned how to use @State and @Binding, and the power they provide in a transparent and easy to use way. In this chapter, you’ll learn about other tools that allows you to make your own types efficiently reactive — or reactively efficient!
  3. More User Input & App Storage [New!]: In this chapter, you will expand your knowledge by learning more advanced input controls like calendar and color pickers. You will also get to know how to persist the information with an overview of App Storage.
  4. Gestures: Learn how to trigger updates on the interface, including how to easily test a SwiftUI interface, how to manage the flow of screens throughout a complex app, and how to deal with gestures, including the development of a custom gesture.
  5. Accessibility [New!]: Learn how to navigate your app with VoiceOver on an iOS device and use the SwiftUI Accessibility API attributes to improve your app’s accessible UI. You’ll add labels that provide context for UI elements and improve VoiceOver information by reordering, combining or ignoring child elements.
Chris Belanger

Contributors

Chris Belanger

Author

Over 300 content creators. Join our team.