Align

public enum Align : Int
  • far: Specifies that the object is aligned at the origin position of the layout rectangle.
  • near: Specifies that the object is aligned at the opposite side of the origin position of the layout rectangle.
  • center: Specifies that the object is aligned at the center between the origin position of the layout rectangle and its opposite side.
  • Undocumented

    Declaration

    Swift

    case near = 0
  • Undocumented

    Declaration

    Swift

    case center = 1
  • far

    Undocumented

    Declaration

    Swift

    case far = 2
  • Converts the specified integer to one of the values of the Align enumeration.

    Declaration

    Swift

    public static func fromRawValue(_ id: Int) -> Align?

    Parameters

    id

    The integer to be converted.

    Return Value

    One of the Align enumeration values or nil if the specified integer does not correspond to any
    of them.