is it possible to animate the font-size of a CATextLayer, starting from bottom left?
I am able to animate the CATextLayer with the following code, but it is always starting from top-left:
let fontSizeAnimation = CABasicAnimation(keyPath: "fontSize")
fontSizeAnimation.toValue = 24.0
fontSizeAnimation.duration = 2
fontSizeAnimation.fillMode = .forwards
fontSizeAnimation.isRemovedOnCompletion = false
textLayer.add(fontSizeAnimation, forKey: "fontSizeAnimation")
You need to use custom
CATextLayerexample added