Categories
SwiftUI

Understand Stack Views in SwiftUI

There are three built-in stacking views in SwiftUI; VStack, HStack, and ZStack. All three stacks are of type View. Stacks have alignment and content parameters. VStack & HStack also have a spacing parameter. In SwiftUI, the last parameters can be omitted, the default alignment in the center and the spacing is dynamic when it is […]