Generic Structure

VStack

A view that arranges its children in a vertical line.

Declaration

@frozen struct VStack<Content> where Content : View

Topics

Creating a Stack

init(alignment: HorizontalAlignment, spacing: CGFloat?, content: () -> Content)

Creates an instance with the given spacing and horizontal alignment.

struct HorizontalAlignment

An alignment position along the horizontal axis.

Applying Standard Modifiers

View Modifiers

Configure this view and the views it contains by applying standard modifiers.

Relationships

Conforms To

See Also

Stacks

struct HStack

A view that arranges its children in a horizontal line.

struct ZStack

A view that overlays its children, aligning them in both axes.