CABasicAnimation Property Listings

67 views Asked by At

I'm following a Core Animation tutorial and the narrator created a CABasicAnimation object and began using all these different properties of the object such as duration, repeatCount, and autoReverse. The problem I'm experiencing is that when I research Apple's CABasicAnimation documentation, it doesn't show these properties. I think its really cool that the narrator found these properties to make use of them and I'd like to know how do I improve my research skills or where am I not looking in Apple's documentation to find these properties that the narrator uses?

Thank you in advance

2

There are 2 answers

0
David Rönnqvist On BEST ANSWER

I'm not sure what properties you are referring to, but if you follow the documentation for CABasicAnimation (that you linked to) you can see that it inherits from CAPropertyAnimation which in turn inherits from CAAnimation, both of which define and document some additional properties.

Additionally, you can see that it conforms to CAMediaTiming, which cover the timing related properties of all animations.

Together, these should provide the documentation for all the public properties that you can configure and rely upon.

0
Marcus On

Take a look at the Core Animation programming guide:

https://developer.apple.com/library/content/documentation/Cocoa/Conceptual/CoreAnimation_guide/Introduction/Introduction.html

Specifically the section on animating layer content.

Hope that helps.