I have a 200x200 pixel CALayer to which I applied two transformations:
- reduced to 50%
- applied three-dimensional perspective
Now I want to align the transformed layer with another layer. To do this, I need the size (width and height) of the converted layer.
The problem is that layer.bounds still returns 200x200 for the layer, but due to perspective conversion, the actual visible width is smaller and the height is greater than 200 . View layer ratings return 0 , by the way.
Is there a way to determine the exact size of the converted CALayer exactly as it appears on the screen?
Thanks Mark.
core-animation calayer catransform3d
Mark
source share