How to animate SKShapeNode's lineLength

I would like to animate the SKShapeNode’s lineLength property.


Quote from the documentation:

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.


This is exactly what i would like to do but how can i change the value?

The lineLength is a get property.

Haha I have just stumbled upon the same issue and was about to ask the same question. Why the heck is it a read-only variable? Then it says in the documentation you can use it to animate the path. What a total mess. I think there's not going to be an easy way to do this.

I guess the property should be read-write, otherwise it would not make sense for it to exist.

I wonder if we can get Apple's opinion on this, probably a bug report for this would be a good start.

How to animate SKShapeNode's lineLength
 
 
Q