Alignment

public struct Alignment : Equatable

An alignment in both axes.

  • A guide marking the center of the element.

    Declaration

    Swift

    public static let center: Alignment
  • A guide marking the leading edge of the element.

    Declaration

    Swift

    public static let leading: Alignment
  • A guide marking the trailing edge of the element.

    Declaration

    Swift

    public static let trailing: Alignment
  • top

    A guide marking the top edge of the element.

    Declaration

    Swift

    public static let top: Alignment
  • A guide marking the bottom edge of the element.

    Declaration

    Swift

    public static let bottom: Alignment
  • A guide marking the top and leading edges of the element.

    Declaration

    Swift

    public static let topLeading: Alignment
  • A guide marking the top and trailing edges of the element.

    Declaration

    Swift

    public static let topTrailing: Alignment
  • A guide marking the bottom and leading edges of the element.

    Declaration

    Swift

    public static let bottomLeading: Alignment
  • A guide marking the bottom and trailing edges of the element.

    Declaration

    Swift

    public static let bottomTrailing: Alignment
  • The alignment on the horizontal axis.

    Declaration

    Swift

    public var horizontal: HorizontalAlignment
  • The alignment on the vertical axis.

    Declaration

    Swift

    public var vertical: VerticalAlignment
  • Creates an instance with the given horizontal and vertical alignments.

    Declaration

    Swift

    public init(horizontal: HorizontalAlignment, vertical: VerticalAlignment)