Customizing Animations with AnimatableVector

Episode #449 | 10 minutes | published on July 23, 2020 | Uses Swift-5.3, iOS-14.0-beta2, Xcode-12-beta2
Subscribers Only
If you can describe your animation with a small number of parameters that interpolate over the animation, animation is pretty easy. But once you want to combine an arbitrary number of animatable data values, for instance an array of Doubles representing our points, then you have to resort to a custom VectorArithmetic implementation. In this episode we will create an AnimatableVector type that is capable of animating between arrays of Double values. We then use this type to animate between 2 sets of points using our waveform algorithm.

Nothing yet...

blog comments powered by Disqus