Alignment

class Alignment

An object representing the value of a textLayer’s text alignment property. This object can take on the following values: natural, left, right, center or justified.

  • A string representing the alignment value.

    Declaration

    var name: String { get }
  • The object’s description

    Declaration

    var description: String { get }
  • Compares two values for equality.

    The equals function is invoked using infix notation as in the following code snippet: lhs == rhs.

    Declaration

    func equals(_ lhs: Alignment) -> Bool

    Parameters

    lhs

    A value.

    rhs

    Another value.

    Return Value

    true if the lhs and rhs are equal, false otherwise.