LazyVStack
public extension LazyVStack
-
Creates an instance that arranges its children in a vertical line.
Declaration
Swift
init( alignment: HorizontalAlignment = .center, spacing: BPKSpacing, pinnedViews: PinnedScrollableViews = .init(), @ViewBuilder content: () -> Content)Parameters
alignmentThe horizontal alignment of the children within the stack’s bounds.
spacingThe distance between the top edge of one child and the bottom edge of the previous child.
pinnedViewsThe set of views that should remain visible when the stack is scrolled.
contentA view builder that creates the children of this stack.