Enumeration

UIStackViewAlignment

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

Declaration

typedef enum UIStackViewAlignment : NSInteger {
    ...
} UIStackViewAlignment;

Topics

Constants

UIStackViewAlignmentFill

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

UIStackViewAlignmentLeading

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 UIStackViewAlignmentTop alignment for horizontal stacks.

UIStackViewAlignmentTop

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 UIStackViewAlignmentLeading alignment for vertical stacks.

UIStackViewAlignmentFirstBaseline

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

UIStackViewAlignmentCenter

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

UIStackViewAlignmentTrailing

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 UIStackViewAlignmentBottom alignment for horizontal stacks.

UIStackViewAlignmentBottom

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 UIStackViewAlignmentTrailing alignment for vertical stacks.

UIStackViewAlignmentLastBaseline

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