Layering with ZStack
Overlap views back to front for depth.
Stacking in Depth
VStack goes down and HStack goes across, but sometimes you want views to overlap. That calls for a stack that works in depth. 🧱
Meet ZStack
A ZStack layers its children back to front, like sheets of glass piled on top of each other. Later views sit above earlier ones.
All lessons in this course
- Stacking Views Vertically
- Rows with HStack
- Layering with ZStack
- Spacing & Alignment in Stacks