Reputation: 6952
In apple's document, kCAFillModeRemoved
in CAMediaTiming
is : The receiver is removed from the presentation when the animation is completed.
removedOnCompletion
property of CAAnimation
is : Determines if the animation is removed from the target layer’s animations upon completion.
I know that if set removedOnCompletion
to YES, the instance of CAAnimation will be removed when animation is complete. Now my question is that if set fillMode
to kCAFillModeRemoved
, what is removed when animation is complete.
Upvotes: 2
Views: 647
Reputation: 56625
The key word you are missing in those sentences is "presentation".
The removedOnCompletion
property determines whether or not the animation object is removed from the layer upon completion.
The fillMode
property determines the appearance of the presentation layer before and after the animation has passed (before beginTime and after beginTime+duration).
Example 1: removed = NO
and fillMode = removed
will look as if the animation is removed but it's not.
Example 2: removed = YES
and fillMode = forwards
the animation will be removed upon completion so there is nothing for the fill mode to fill in after the animation.
Upvotes: 4