You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is it possible with this library to create an animation from one path value to another, like with CABasicAnimation, but unlike CABasicAnimation make it scrubbable?
The text was updated successfully, but these errors were encountered:
It's certainly possible to drive this sort of animation with TweenKit. The difficulty is in finding some kind of 'handle' that can be exposed to TweenKit to actually apply the animation values.
eg. In this case, I'm not sure what self.someProperty would be, that would transition the path from one path to another.
let action = InterpolationAction(
from: fromRect,
to: toRect,
duration: 1.0,
easing: .exponentialInOut) {
self.someProperty = $0
}
I don't know core animation well enough to be able to point you in the right direction I'm afraid. If such a feature exists that lets you hook in to the interpolated state between two paths, then you can certainly use TweenKit to drive it.
The someProperty was the bit I was struggling with unfortunately, the CABasicAnimation makes it easy since you can just set path as the to and from without needing to know the in-between.
Is it possible with this library to create an animation from one path value to another, like with
CABasicAnimation
, but unlikeCABasicAnimation
make it scrubbable?The text was updated successfully, but these errors were encountered: