SwiftUI - Stacks

These are notes I’ve taken while watching the video of the corresponding session. They don’t have all the information contained in the video, but I’ve tried to still write the main points for my personal use cases.

You can use stacks to align elements.

VStack aligns them vertically one above the other HStack aligns them horizontally next to each other ZStack piles them up, on top of each other at the same position

Source: SwiftUI on watchOS


Valentino Urbano

iOS Developer, Swift, Writer, Husband

Back to Overview