GrowingLayoutAxis

public enum GrowingLayoutAxis

An an axis in which the layout of a view can be extended to fill the available space.

The growing axes of a view can be modified by the view itself by implementing the GrowingAxesModifying protocol.

  • An undetermined layout axis. Used by e.g. Spacers to indicate that its growing axes is only determined by a containing HStack or VStack

    Declaration

    Swift

    case undetermined
  • Indicates that a View can grow vertically.

    Declaration

    Swift

    case vertical
  • Indicates that a View can grow horizontally.

    Declaration

    Swift

    case horizontal