Returns the default animation that should be performed for the specified key.
- macOS 10.5+
The action name or property specified as a string.
The animation to perform. A subclass of
An animatable property container should implement this method to return a default animation to be performed for each key that it wants to make auto-animatable, where
key usually references a property of the receiver, but can also specify a special animation trigger (
A developer implementing a custom view subclass, can enable automatic animation for properties by overriding this method, and having it return the desired default
CAAnimation subclass to use for each of the property keys of interest. The override should defer to super for any keys it doesn't specifically handle, facilitating inheritance of default animation specifications. The following is an example of such an implementation.