Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>If you animate layer, the view that contains layer will remain at same place so frame will remain same. layer also have frame, bound and position properties, so try reading properties of layer.</p> <p>EDIT:</p> <p>I found following explanation in CAKeyframeAnimation Class Reference.</p> <blockquote> <p>While animating, it updates the value of the property in the render tree with values calculated using the specified interpolation calculation mode.</p> </blockquote> <p>and for knowing what is render tree I found it here.</p> <p><a href="http://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/CoreAnimation_guide/Articles/CoreAnimationArchitecture.html#//apple_ref/doc/uid/TP40006655-SW1" rel="nofollow">http://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/CoreAnimation_guide/Articles/CoreAnimationArchitecture.html#//apple_ref/doc/uid/TP40006655-SW1</a></p> <p>Seems that values are getting updated in render tree and as render tree is different from presentation and private we cannot access it.</p> <p>Following is last paragraph of above link.</p> <blockquote> <p>You can query an instance of CALayer for its corresponding presentation layer while an animation transaction is in process. This is most useful if you intend to change the current animation and want to begin the new animation from the currently displayed state.</p> </blockquote> <p>Baseed on this a work around can be to calculate new position of layer based on the paths you provided and setting presentation layer frame property accordingly.</p> <p>Please write here in case you find any update.....</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload