Enumeration

UIStackView.Alignment

The layout of arranged views perpendicular to the stack view’s axis.

Declaration

enum Alignment : Int

Topics

Constants

case fill

A layout where the stack view resizes its arranged views so that they fill the available space perpendicular to the stack view’s axis.

case leading

A layout for vertical stacks where the stack view aligns the leading edge of its arranged views along its leading edge. This is equivalent to the top alignment for horizontal stacks.

static var top: UIStackView.Alignment

A layout for horizontal stacks where the stack view aligns the top edge of its arranged views along its top edge. This is equivalent to the UIStackView.Alignment.leading alignment for vertical stacks.

case firstBaseline

A layout where the stack view aligns its arranged views based on their first baseline. This alignment is only valid for horizontal stacks.

case center

A layout where the stack view aligns the center of its arranged views with its center along its axis.

case trailing

A layout for vertical stacks where the stack view aligns the trailing edge of its arranged views along its trailing edge. This is equivalent to the bottom alignment for horizontal stacks.

static var bottom: UIStackView.Alignment

A layout for horizontal stacks where the stack view aligns the bottom edge of its arranged views along its bottom edge. This is equivalent to the UIStackView.Alignment.trailing alignment for vertical stacks.

case lastBaseline

A layout where the stack view aligns its arranged views based on their last baseline. This alignment is only valid for horizontal stacks.