0

I am trying to find an elegant way to animate frame & opacity of individual characters in CATextLayer. However to make the completion of animation smooth I am unable to find a way to determine the position of each character in the text. The text as well are font are dynamic so statically determining kerning or spacing is not possible.

Deepak Sharma
  • 5,577
  • 7
  • 55
  • 131

1 Answers1

2

CATextLayer accepts NSAttributedString for string property.

Then, you can try to create multiple same text layers, and set some characters to transparent color.

eonil
  • 83,476
  • 81
  • 317
  • 516