View Source VStack

<VStack>

Container that lays out its children in a vertical line.

Overview

<VStack>
    <Text>Top</Text>
    <Text>Bottom</Text>
</VStack>

Attributes

SwiftUI Documentation

See SwiftUI.VStack for more details on this View.

References

The horizontal alignment of views within the stack. Defaults to center-aligned.

Discussion

See HorizontalAlignment

The spacing between views in the stack. If not provided, the stack uses the system spacing.