LayerType

class LayerType

An object representing a layer’s type. There are 5 type of layers: group, image, path, shape, text and shapeMask. Image layers are used to diplay images. Text layers are used to display text. Shape layers display shapes. Path are used to build Shape layers. Group layers are used to group layers, and in turn assemble layers into a “Layer Hierarchy”. ShapeMask layers are used to maks the contents of other layers.

  • The string represention of the layer type.

    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: LayerType) -> Bool

    Parameters

    lhs

    A value.

    rhs

    Another value.

    Return Value

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