I would like to animate a straight line curving into a bezier curve (from "_" to "n"), is there a library somewhere that can help me to do it ?
I know how to draw a Bezier curve with UIBezierPath, I could redraw rapidly and progressively do the transformation, but if something already does that it would be cool :-)
I might do something with a
CADisplayLink
. For example, you could do this in your view controller using aCAShapeLayer
, e.g.:Alternatively, if you wanted to do it by subclassing
UIView
, you could do it like so:I test both the subclassed
UIView
as well as the view controller, and they both resulted in roughly 60 frames per second.