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.
Asked
Active
Viewed 290 times
0
-
That's an interesting answer, but how do you set different colors for different characters ? – Deepak Sharma Jul 11 '14 at 02:44
-
I posted as a new answer. – eonil Jul 11 '14 at 07:46
1 Answers
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