Use these layers to build the skeleton of your app.
6 articles
▶️ Stacks & Spacers 101Build a search bar to learn about HStack, VStack, ZStack, and Spacer—the foundational elements of all layouts.
HStackA layer that arranges its sublayers in a horizontal line.
VStackA layer that arranges its sublayers in a vertical line.
ZStackA layer that arranges its sublayers on top of each other.
SpacerA flexible space that expands along the major axis of its containing stack layout.
DividerA visual element that is used to separate other content on a screen.