Contents

horizontal

The alignment on the horizontal axis.

Declaration

var horizontal: HorizontalAlignment

Discussion

Set this value when you initialize an alignment using the init(horizontal:vertical:) method. Use one of the built-in HorizontalAlignment guides, like center, or a custom guide that you create.

For information about creating custom guides, see AlignmentID.

See Also

Creating a custom alignment