Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Animation for drawRect drawings

A part of my app is a statistics-function. I draw in a UIView a path and fill it with a color... now I want to make an animation that the path draws through the UIView from the left side to the right side.

I read about CALayer, but I'm not sure how that works... some sample code or links would be great.

like image 501
Christian 'fuzi' Orgler Avatar asked Sep 07 '11 23:09

Christian 'fuzi' Orgler


People also ask

Can you animate on sketches?

For the first time in Sketch, Anima allows designers to create beautiful screen transitions easily, with Auto-Animate. Learn how to use Auto-Animate, right inside Sketch. Anima is available for Sketch, XD and Figma. Anima brings animated screen transitions to Sketch!


1 Answers

This is a great post: http://tumbljack.com/post/179975074/complex-interpolation-with-cashapelayer-free

In general this is a duplicate of this: Animating a shape with CoreAnimation

Cheers

Oded

like image 182
Oded Ben Dov Avatar answered Oct 06 '22 03:10

Oded Ben Dov