Structure

VerticalAlignment

An alignment position along the horizontal axis.

Declaration

@frozen struct VerticalAlignment

Topics

Guides

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.

Creating a Custom Alignment

init(AlignmentID.Type)

Creates an instance with the given identifier.

Operator Functions

static func != (VerticalAlignment, VerticalAlignment) -> Bool

Returns a Boolean value indicating whether two values aren’t equal.

static func == (VerticalAlignment, VerticalAlignment) -> Bool

Returns a Boolean value indicating whether two values are equal.

See Also

Creating a Stack

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

Creates an instance with the given spacing and vertical alignment.