Oh I just responded to your email and did not understand your question.
You should be able to do what @Emile Schwarz said. Create the class, set the Super to Label, then click the Interfaces button and choose AnimationKit.ValueAnimator. Then you can copy and paste each method into your navigator/sidebar. You may have two AnimationStep methods at that point, so delete the empty one.
Its just a quick and dirty example of what the ValueAnimator can do, Id have packaged it up as a usable class if I expected people to actually use it for something.
Ah, bad example code. Change If Task <> Nil And Not (Task.Completed Or Task.Cancelled) Then to the simpler If Task <> Nil Then because it’s perfectly safe to cancel a task that is already finished or cancelled.
No, that won’t work because you’re setting Value up to 100, then immediately setting it back down to 0. The second action cancels the first, and since the value hasn’t actually changed yet, nothing actually happens.
Try setting CountingLabel1.Text = "100" first so the animation is avoided and the value updated immediately.