I find some code like this:
CABasicAnimation *anim = [CABasicAnimation animation];
anim.keyPath = @\"transform.scale\";
anim.fromValue = [NSNumber numberWithFloa
Core Animation extends KVC to support direct addressing of fields (or pseudo fields) of some struct-type properties of layers. The feature is described in Core Animation Extensions To Key-Value Coding.
I'm not sure, but I found a solution that could probably help.
IN SWIFT: Instead of writing a String you can use this:
let shadowAnimation = CABasicAnimation(keyPath: #keyPath(CALayer.shadowRadius))
When you type CALayer. <- autocomplete should give you the available keyPaths.
I hope this helps.