Property

class Property

An object representing a style attribute of a Layer.

  • id

    The property’s unique identifier.

    Declaration

    var id: String { get }
  • The property’s name.

    Declaration

    var name: String { get }
  • CALayer key path for this propery, if applicable.

    Declaration

    var layerKeyPath: String? { get }
  • The type of layer this property applies to.

    Declaration

    var layerType: String { get }
  • The property’s default value.

    Declaration

    var defaultValue: Value { 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: Property) -> Bool

    Parameters

    lhs

    A value.

    rhs

    Another value.

    Return Value

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