Is "affineTransform" a valid CALayer key for setting CABasicAnimation

This seems like a really basic question, which is surprisingly hard to find the answer.

CABasicAnimations created with "affineTransform" because the key path did not work for me, and in the heap of places I saw, people end up using CATransform3D instead of the "key path" transform. I am sure that a hint, but it would be good to have confirmation if "affineTransform" is intended to work or not?

+5
source share
1 answer

Technically, affineTransform it is not a CALayer property and is documented as a "convenient method" wrapper around a property transformthat is documented as animated .

Only in fact, objective-c implicit conversion of keys to selectors that it appears affineTransform behaves like a property when used (in most cases) in a key path. However, CA libraries are configured to observe only certain key paths, and that none of them are :-)

+9
source

All Articles