LayerProtocol

public protocol LayerProtocol : Propertied

All Layer types, or types that represent specialisations of Layer implement this common set of properties.

  • The name of the layer, or an empty String if non was specified

    Declaration

    Swift

    var name: String { get }
  • true if the layer should be visible

    Declaration

    Swift

    var visible: Bool { get }
  • A level of how transparent the layer (and therefore its contents) should be rendered with

    Declaration

    Swift

    var opacity: Double { get }
  • An offset from the Layers parent’s origin

    Declaration

    Swift

    var position: Position { get }
  • Any tint color that should be applied to the Layer and its contents. If nil then no tint should be applied

    Declaration

    Swift

    var tintColor: Color? { get }
  • If true the layer is locked. If you are providing editing functionality no changes should be made to this layer

    Declaration

    Swift

    var locked: Bool { get }