LayerSnapshot

class LayerSnapshot

The value of all the properties of a given layer at a specific point in the animation.

  • property documentation (update this)

    Declaration

    var descendants: Array<FleshedLayer> { get }
  • id

    property documentation (update this)

    Declaration

    var id: String { get }
  • property documentation (update this)

    Declaration

    var type: LayerType { get }
  • property documentation (update this)

    Declaration

    var name: String { get }
  • property documentation (update this)

    Declaration

    var visible: Bool { get }
  • property documentation (update this)

    Declaration

    var locked: Bool { get }
  • property documentation (update this)

    Declaration

    var resizingConstraint: ResizingConstraint { get }
  • property documentation (update this)

    Declaration

    var layer: Layer { get }
  • property documentation (update this)

    Declaration

    var parent: LayerSnapshot { get }
  • property documentation (update this)

    Declaration

    var sublayers: Array<FleshedLayer> { get }
  • property documentation (update this)

    Declaration

    var clippingMask: Layer? { get }
  • property documentation (update this)

    Declaration

    var position: Point { get }
  • property documentation (update this)

    Declaration

    var bounds: Rect { get }
  • property documentation (update this)

    Declaration

    var size: Size { get }
  • property documentation (update this)

    Declaration

    var anchorPoint: Point { get }
  • property documentation (update this)

    Declaration

    var rotation: Angle { get }
  • property documentation (update this)

    Declaration

    var opacity: Double { get }
  • property documentation (update this)

    Declaration

    var backgroundColor: Color { get }
  • property documentation (update this)

    Declaration

    var borderWidth: Double { get }
  • property documentation (update this)

    Declaration

    var borderColor: Color { get }
  • property documentation (update this)

    Declaration

    var cornerRadius: Double { get }
  • property documentation (update this)

    Declaration

    var shadowColor: Color { get }
  • property documentation (update this)

    Declaration

    var shadowRadius: Double { get }
  • property documentation (update this)

    Declaration

    var shadowOffset: Size { get }
  • property documentation (update this)

    Declaration

    var flippedHorizontal: Double { get }
  • property documentation (update this)

    Declaration

    var flippedVertical: Double { get }
  • property documentation (update this)

    Declaration

    var masksToBounds: Bool { get }
  • property documentation (update this)

    Declaration

    var image: Image? { get }
  • property documentation (update this)

    Declaration

    var contentMode: ContentMode { get }
  • property documentation (update this)

    Declaration

    var path: CompositePath { get }
  • property documentation (update this)

    Declaration

    var fillGradient: Gradient? { get }
  • property documentation (update this)

    Declaration

    var fillImage: FillImage? { get }
  • property documentation (update this)

    Declaration

    var fillColor: Color { get }
  • property documentation (update this)

    Declaration

    var strokeColor: Color { get }
  • property documentation (update this)

    Declaration

    var strokeWidth: Double { get }
  • property documentation (update this)

    Declaration

    var strokeStart: Double { get }
  • property documentation (update this)

    Declaration

    var strokeEnd: Double { get }
  • property documentation (update this)

    Declaration

    var miterLimit: Double { get }
  • property documentation (update this)

    Declaration

    var lineCap: LineCap { get }
  • property documentation (update this)

    Declaration

    var lineJoin: LineJoin { get }
  • property documentation (update this)

    Declaration

    var dashPattern: Array { get }
  • property documentation (update this)

    Declaration

    var dashPatternOffset: Double { get }
  • property documentation (update this)

    Declaration

    var shapeOperation: String { get }
  • property documentation (update this)

    Declaration

    var path: Path { get }
  • property documentation (update this)

    Declaration

    var operation: Double { get }
  • property documentation (update this)

    Declaration

    var maskPath: CompositePath { get }
  • property documentation (update this)

    Declaration

    var attributedString: NSMutableAttributedString? { get }
  • property documentation (update this)

    Declaration

    var string: String? { get }
  • property documentation (update this)

    Declaration

    var font: Font { get }
  • property documentation (update this)

    Declaration

    var fontSize: Double { get }
  • property documentation (update this)

    Declaration

    var foregroundColor: Color { get }
  • property documentation (update this)

    Declaration

    var alignment: Alignment { get }
  • property documentation (update this)

    Declaration

    var truncation: Truncation { 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: LayerSnapshot) -> Bool

    Parameters

    lhs

    A value.

    rhs

    Another value.

    Return Value

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