Closed mohamede1945 closed 7 years ago
Hi @mohamede1945 I don't know what's your exact use case. But I guess you can,
KFVectorFromDictionaryInRange
to only export part of the whole animation
orIt's not very straightforward to control the animation playback programmatically, you might want to check CAMediaTiming
Thank you so much! I think I will go with the KFVectorFromDictionaryInRange
. I was trying to do it with CAMediaTiming but failed.
My use case was to animate an image between 3 states, (A, B, C). User taps on the button the image animates A -> B taps again B -> C taps again C -> A. I wanted to do it with just one vector so that I don't recreate CALayers again.
Suppose, my vector file contains 3 seconds of animation. How can I animate only part of it, like from second 2 to second 3? In other words, from progress 0.3333 to progress 0.6666. I think right now this is not supported by the framework, but I'd like to know some ideas so I can implement it myself.