SwiftUI: Layout & Interfaces

Nov 18 2021 Swift 5.5, iOS 15, Xcode 13

Part 2: Aligning Views

9. Introduction

Episode complete

Play next episode

Next
Save for later
About this episode
See versions

See forum comments
Cinema mode Mark complete Download course materials
Previous episode: 8. Conclusion Next episode: 10. Stack Alignment

Update Notes: This course was originally recorded in 2020. It has been reviewed and all content and materials updated as of October 2021.

Welcome to the second part of SwiftUI: Layout and Interfaces. Here’s what we’ll be covering, to finish off the course:

To begin with, you’ll start working with Alignments, which are key to making the most out of Stacks.

After trying alignment out, you’ll learn more about why it works. It’s because of invisible helpers called Alignment Guides.

Once you know how to work with them, you’ll have unlocked the ability to perform customized layout with surgical precision.

Moving on from Alignment, you’ll encounter the ZStack: the most powerful tool SwiftUI offers for layering Views.

And finally, we’ll finish up with a primer on GeometryReader: the structure that you’ll use to provide views with information about their parents.

Starting in the next episode, I’ll look a little different, as I recorded the rest of the episodes a year ago, before some of us stopped getting haircuts at salons, to help avoid COVID-19. And while I recorded them using Xcode 11, I’ve updated the downloadable materials for Xcode 12, Swift 5.3, and iOS 14.

The changes to this part were so small that it didn’t warrant a redo this year. All the new stuff, for this year, is back in Part 1. But of course, if you haven’t learned this yet, it’s brand new to you! So meet me in the next episode, and we’ll tackle Stack Alignment together.