I have trouble understanding apple's core animation (for iOS).
I am trying to animate the position
and bounds
of a layer concurrently (but with different timing functions).
According to the documentation, a CAAnimationGroup allows multiple animations to be grouped and run concurrently. But according to my (early) experiments this can also be accomplished by adding several animation objects to the target layer. If so, what is the purpose of that CAAnimationGroup?
If you want to animate two different properties with different timing functions then grouping these animation is not needed in this case. I think that grouping is useful when you create several animations and want them to have the same timing behaviour. You can set timing function for the group. In the Core Animation Cookbook i saw an example that shows how to use grouping when setting a timing curve for CAKeyframeAnimation.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With