How to Use Alignments in SwiftUI — Container Expansion using Alignments

Mark van Wijnen
5 min readApr 10, 2022

This is the third part in the ‘SwiftUI Layout System’ series and the fourth part in the subseries about ‘How to Use Alignments in SwiftUI’. To keep things simple we haven’t caused the tallest element of the container, in this case the Stack, to be repositioned in the past parts, but we will change that in this part and see what happens when we do.

--

--

Mark van Wijnen

macOS/iPadOS/iOS/watchOS/visionOS developer and SwiftUI enthousiast. “Stay Hungry, Stay Foolish!” — Steve Jobs