Drawing in iOS - Part 6: Basic Animation | Ray Wenderlich Videos

Learn how to control CAShapeLayer animation


This is a companion discussion topic for the original entry at https://www.raywenderlich.com/4659-drawing-in-ios/lessons/6

Hi Ma’am!
Thanks for the great course like this. How we get the keyPath/key names and you use animation name “stroke”, so how to know those values generally to use in KVO functionalities.

Thanks

@abnboys - I don’t know of a single apple documentation reference for these. In the documentation, properties are marked with Animatable.

For example: https://developer.apple.com/documentation/quartzcore/cashapelayer - scroll down to fillColor. It’s marked Animatable in the description.

In the archived documentation there’s the CALayer properties: https://developer.apple.com/library/archive/documentation/Cocoa/Conceptual/CoreAnimation_guide/AnimatableProperties/AnimatableProperties.html#//apple_ref/doc/uid/TP40004514-CH11-SW1
but these don’t include CAShapeLayer properties.

Some kind person has put up a useful list on stackoverflow: https://stackoverflow.com/a/49480213