I have a CALayer with a CATextLayer sublayer. When I apply a transform or otherwise resize the CALayer, I need the CATextLayer to resize within its parent's bounds. Upon resize, the CATextLayer also needs to truncate its characters without distorting the proportion of the characters. This effect can be seen in Garageband for iPad when you resize a clip in the sequence view (screen below).
In my attempt to resize the CATextLayer within it's parent layer's bounds, I have:
Here's what happens:
What it sounds like you want to do is animate both the CALayer
's and CATextLayer
's bounds
property, not their transform
property.