Created
December 28, 2013 15:09
-
-
Save jwilling/8160367 to your computer and use it in GitHub Desktop.
NSViewLayerContentsRedrawCrossfade on 10.8
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[NSAnimationContext runAnimationGroup:^(NSAnimationContext *context) { | |
context.duration = 4.f; | |
context.allowsImplicitAnimation = YES; | |
[view.layer addAnimation:CATransition.animation forKey:@"contents"]; | |
view.layer.contents = someImage; | |
} completionHandler:nil]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment