Re: CABasicAnimation does not animate bounds.origin of a layer

2019-09-14 Thread Steve Christensen via Cocoa-dev
First guess would be not to explicitly set -anchorPosition. It defaults to (0.5, 0.5), which refers to the middle of the bounds, and transforms (like scaling) are applied relative to that position. > On Sep 14, 2019, at 6:25 AM, Gabriel Zachmann via Cocoa-dev > wrote: > > Maybe, I haven't

CABasicAnimation does not animate bounds.origin of a layer

2019-09-14 Thread Gabriel Zachmann via Cocoa-dev
Maybe, I haven't understood how the animation of the bounds property works, or the bounds property of a CALayer itself , or I am making a stupid mistake. Here is my code: CALayer * imgLayer = [CALayer layer]; imgLayer.contents= (__bridge id) imageRef;