Thread with 8 posts
jump to expanded postdoes anyone know whether UIView's properties (position and size, opacity etc) just pass through to CALayer or the other way round? or is it somehow bidirectional?
I think UIView passes through to CALayer, it's the only way that makes sense from everything I've read.
@saagar I don't want to contaminate myself with Apple implementation details, so I refuse to use Ghidra on the OS frameworks, just apps that use them :p
@saagar also it's kind of a fun puzzle this way
@saagar ooh…
@hikari I truly cannot recommend this article enough: https://www.objc.io/issues/12-animations/view-layer-synergy/
But the tldr is yes, UIView directly updates its backing CALayer when you change its properties. But there are some differences between a CALayer that is owned by a UIView and a plain CALayer. Mostly to do with animations.