Structure

VerticalAlignment

An alignment position along the horizontal axis

Declaration

@frozen struct VerticalAlignment

Topics

Initializers

init(AlignmentID.Type)

Creates an instance with the given ID.

Type Properties

static let bottom: VerticalAlignment

A guide marking the bottom edge of the view.

static let center: VerticalAlignment

A guide marking the vertical center of the view.

static let firstTextBaseline: VerticalAlignment

A guide marking the topmost text baseline view.

static let lastTextBaseline: VerticalAlignment

A guide marking the bottom-most text baseline in a view.

static let top: VerticalAlignment

A guide marking the top edge of the view.

See Also

Creating a Stack

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

Creates an instance with the given spacing and Y axis alignment.