Initializer

init(horizontal:vertical:)

Creates an instance with the given horizontal and vertical alignments.

Declaration

init(horizontal: HorizontalAlignment, vertical: VerticalAlignment)

Parameters

horizontal

The alignment on the horizontal axis.

vertical

The alignment on the vertical axis.

See Also

Creating a Custom Alignment

var horizontal: HorizontalAlignment

The alignment on the horizontal axis.

var vertical: VerticalAlignment

The alignment on the vertical axis.