SwiftUI Container Concept

Mark Moeykens
Oct 1, 2019
In SwiftUI, you have this concept of a container view. These containers help with the layout so you don't have to spend a lot of time with the layout every single view on your screen.



This example introduces the VStack which vertically lays out its children.

The cool thing about container views is you can apply modifiers to them. They are views too and can have colors, borders, shadows, etc.

We will cover more of these concepts this week.

Free SwiftUI Picture Book



Screenshots for every code example? Yes! Get your FREE SwiftUI picture book here.