Skip to content

Instantly share code, notes, and snippets.

@MickaelCruzDB
Created June 5, 2015 14:20
Show Gist options
  • Save MickaelCruzDB/af05f158cd286a38ccf3 to your computer and use it in GitHub Desktop.
Save MickaelCruzDB/af05f158cd286a38ccf3 to your computer and use it in GitHub Desktop.
NSAnimationContext.runAnimationGroup({ (context) -> Void in
var transition:CATransition = CATransition()
transition.duration = 0.3
transition.timingFunction = CAMediaTimingFunction(name: kCAMediaTimingFunctionEaseOut)
transition.type = kCATransitionPush
transition.subtype = kCATransitionFromRight
transition.delegate = self
context.duration = 0.5
topVC.view.animator().alphaValue = 1
bottomVC.view.animator().alphaValue = 0
topVC.view.frame = ????
}, completionHandler: nil)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment