This is a Chinese word "夜". The word's outline build by UIBezierPath
and CAShapeLayer
.
like that:
I want to know, How to fill the word background color with the animation that like no.1 picture.
I know the word's medians
position.
Do you have any idea? thanks.
some references:
- https://github.com/chanind/hanzi-writer/blob/master/data/%E4%BB%B6.json
- https://github.com/chanind/hanzi-writer
=== Update
let anim = CABasicAnimation(keyPath: "strokeEnd")
anim.fromValue = 0.0
anim.toValue = 1.0
That's not my want. @LouFranco