Re: CATransformLayer doesn't support implicit animation?
Re: CATransformLayer doesn't support implicit animation?
- Subject: Re: CATransformLayer doesn't support implicit animation?
- From: David Duncan <email@hidden>
- Date: Wed, 9 Feb 2011 09:26:59 -0800
On Feb 7, 2011, at 9:43 PM, Indragie Karunaratne wrote:
> I'm trying to animate a CATransformLayer (the transform layer is a sublayer of the layer of a layer hosting NSView). Here's my animation code:
>
> self.transformLayer is a CATransformLayer with two sublayers, one for the front and one for the back (I'm creating a "flip" effect). However, this code just sets the position and transform without animation. So I thought that maybe transform doesn't support implicit animation, so I took that out and just tried setting the position, but that didn't animate either (and I know for sure that position supports implicit animation).
>
> Am I doing something wrong or does CATransformLayer just not support implicit animation? The documentation does not say anything about it not supporting it, so I'm assuming it does.
Had you just added the layer to the layer tree on the current runloop iteration? If so, there was no "from" to animate from, so there is no animation.
--
David Duncan
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden