StackLayoutDistribution

public enum StackLayoutDistribution

Specifies how excess space along the axis is allocated.

  • Sublayouts are positioned starting at the top edge of vertical stacks or at the leading edge of horizontal stacks.

    Declaration

    Swift

    case leading
  • Sublayouts are positioned starting at the bottom edge of vertical stacks or at the the trailing edge of horizontal stacks.

    Declaration

    Swift

    case trailing
  • Sublayouts are positioned so that they are centered along the stack’s axis.

    Declaration

    Swift

    case center
  • Distributes excess axis space by increasing the spacing between each sublayout by an equal amount. The sublayouts and the adjusted spacing consume all of the available axis space.

    Declaration

    Swift

    case fillEqualSpacing
  • Distributes axis space equally among the sublayouts. The spacing between the sublayouts remains equal to the spacing parameter.

    Declaration

    Swift

    case fillEqualSize
  • Distributes excess axis space by growing the most flexible sublayout along the axis.

    Declaration

    Swift

    case fillFlexing