HorizontalAlignment

public enum HorizontalAlignment

The possible horizontal alignment values.

  • Aligns the content to the leading edge of the containing element. In left-to-right languages, this is the left edge.

    Declaration

    Swift

    case leading
  • Centers the content horizontally.

    Declaration

    Swift

    case center
  • Aligns the content to the trailing edge of the containing element. In left-to-right languages, this is the right edge.

    Declaration

    Swift

    case trailing
  • The content fills the full horizontal width of the containing element.

    Declaration

    Swift

    case fill