Skip to content

Instantly share code, notes, and snippets.

@adrienbrault
Created June 11, 2011 10:42
Show Gist options
  • Save adrienbrault/1020447 to your computer and use it in GitHub Desktop.
Save adrienbrault/1020447 to your computer and use it in GitHub Desktop.
Get the current position of an animated view with CoreAnimation
NSView *animatedView = ...;
CALayer *presentationLayer = (CALayer*)animatedView.layer.presentationLayer;
CGPoint currentPosition = presentationLayer.position;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment