Structure

HorizontalAlignment

An alignment position along the horizontal axis.

Declaration

@frozen struct HorizontalAlignment

Topics

Guides

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.

Creating a Custom Alignment

init(AlignmentID.Type)

Creates an instance with the given identifier.

Operator Functions

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

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

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

Returns a Boolean value indicating whether two values are equal.

See Also

Creating a Stack

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

Creates an instance with the given spacing and horizontal alignment.