What's the effect of fillMode being kCAFillModeBackwards?

Viewed 4853

kCAFillModeBackwards
The receiver clamps values before zero to zero when the animation is completed.

What does the meaning of "clamping values before zero to zero"? A simple example would be appreciated.

2 Answers

Default : kCAFillModeRemoved - plays the animation at begin time and simply removes animation from view layer.

kCAFillModeBackwards - loads the animation first frame until animation begins and then removes animation completely from view layer after completion.

kCAFillModeForwards - opposite of above. Keep last frame of animation, unless explicitly removed, even after animation completes.

kCAFillModeBoth - kCAFillModeForwards + kCAFillModeBackwards

Related