How to Use Alignments in SwiftUI — The Alignment Process
8 min readMar 4, 2022
This is the third part in the ‘SwiftUI Layout System’ series and the second part in the subseries about ‘How to Use Alignments in SwiftUI’. In this part we will talk in detail about the steps that SwiftUI takes to align its views.
The SwiftUI Layout System
- How to Use the SwiftUI Layout System
- How to Use Stacks in SwiftUI
- How to Use Alignments in SwiftUI
– The Basics
– The Alignment Process
– Custom Alignments
– Container Expansion using Alignments
– Z-Stacks Alignment
(More to come …)
Crew Introduction
To learn about alignments we won’t be using text but we will use images of various different visual baselines. This section is meant as a reference for the values for those images. Without further ado, let’s introduce the cast.