VStack
public extension VStack
-
Creates an instance that arranges its children in a vertical line.
Declaration
Swift
init(alignment: HorizontalAlignment = .center, spacing: BPKSpacing, @ViewBuilder content: () -> Content)
Parameters
alignment
The horizontal alignment of the children within the stack’s bounds.
spacing
The distance between the top edge of one child and the bottom edge of the previous child.
content
A view builder that creates the children of this stack.