Contents

top

A layout for horizontal stacks where the stack view aligns the top edge of its arranged views along its top edge.

Declaration

static var top: UIStackView.Alignment { get }

Discussion

This value is equivalent to the UIStackView.Alignment.leading alignment for vertical stacks.

The following image shows an example of a horizontal stack view that uses the top alignment.

[Image]

See Also

Constants