Alignment

public enum Alignment

Determines the cross-axis layout (height for a horizontal stack, width for a vertical stack).

  • Children will be stretched to the size of the stack.

    Declaration

    Swift

    case fill
  • Children will be aligned relatively to each other, and then all the contents will be aligned to the stack’s bounding box, according to the specified alignment.

    Declaration

    Swift

    case align(to: AlignmentID.Type)