Instance Property

lineLength

The length of the line defined by the shape node.

Declaration

var lineLength: CGFloat { get }

Discussion

This property takes effect only when the shape has a stroke. The valid range is between [0..1] where one indicates that the shape is fully stroked, and zero indicates that the shape is not stroked at all. By interpolating this value over time (for example, in your scene's update(_:) callback), you can animate the shape as if it were drawn in real time.