Skip to main content

ContainerStackView.Alignment

Describes the alignment of the arranged subviews in perpendicular to the container's axis.

public struct Alignment: Equatable 

Inheritance

Equatable

Properties

fill

Makes the arranged subviews so that they fill the available space perpendicular to the container’s axis.

public static let fill 

leading

Makes the arranged subviews align to the leading edge in a vertical axis container.

public static let leading 

top

Makes the arranged subviews align to the top edge in a horizontal axis container.

public static let top 

trailing

Makes the arranged subviews align to the trailing edge in a vertical axis container.

public static let trailing 

bottom

Makes the arranged subviews align to the bottom edge in a horizontal axis container.

public static let bottom 

center

Makes the arranged subviews align to the center along its axis.

public static let center 

Did you find this page helpful?