In a CALayer subclass I'm working on I have a custom property that I want to animate automatically, that is, assuming the property is called "myProperty", I want the following code: [myLayer setMyProperty:newValue]; To cause a smooth animation from the current value to "newValue". Using the approach of overriding actionForKey: and needsDisplayForKey: (see following code) I was able to get it to ru
![Custom property animation with actionForKey: how do I get the new value for the property?](https://cdn-ak-scissors.b.st-hatena.com/image/square/98d6f053a97a87156775f60757c60865d0f2c47d/height=288;version=1;width=512/https%3A%2F%2Fcdn.sstatic.net%2FSites%2Fstackoverflow%2FImg%2Fapple-touch-icon%402.png%3Fv%3D73d79a89bded)