You can try the following:
Create a CAShapeLayer whose path
set to your form. Use this CAShapeLayer as a mask for another layer into which you draw a filled arc / circle. Then animate the angle of the arc / arc circle from 0º to 360º. This may come close to the desired effect.
I can’t find a “built-in” way to animate the fill as you wish. However, there is a built-in way to animate the stroke:
Use a UIView with a CAShapeLayer supporting it. CAShapeLayer has a path
property. You can then apply the animation to the properties of the strokeStart
and / or strokeEnd
.
source share