Structure

HorizontalAlignment

An alignment position along the horizontal axis.

Declaration

@frozen struct HorizontalAlignment

Topics

Initializers

init(AlignmentID.Type)

Creates an instance with the given ID.

Type Properties

static let center: HorizontalAlignment

A guide marking the horizontal center of the view.

static let leading: HorizontalAlignment

A guide marking the leading edge of the view.

static let trailing: HorizontalAlignment

A guide marking the trailing edge of the view.

See Also

Creating a Stack

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

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