How is a CALAyer.frame
related to its UIView.frame
? (in this case specifically a UIImageView.frame
).
Given that the values for a CALayer.frame
potentially differ from its UIView.frame
following a CAtransform3D
transformation, do they no longer have any connection? (and subsequently, should I be more concerned about managing the dimensions of my CALayer
rather than my UIImageView
in my superview?).
If you are working with Core Animation and layers, you should focus on the following CALayer
properties:
A quote from Apple Technical Q&A QA1620 available here:
Q: When I try to animate the frame of a CALayer nothing happens. Why?
A: The frame property of a CALayer is a derived property, dependent on the position, anchorPoint, bounds and transform of the layer. Instead of animating the frame, you should instead animate the position or bounds, depending on what effect you are trying to accomplish.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With