Generic Structure

ZStack

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

Declaration

@frozen struct ZStack<Content> where Content : View

Topics

Creating a Stack

init(alignment: Alignment, content: () -> Content)

Creates an instance with the given alignment.

struct Alignment

An alignment in both axes.

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 VStack

A view that arranges its children in a vertical line.