Created
July 5, 2016 13:07
-
-
Save psaitu/2ab0fae1ea7864a66da1c6bb6806a123 to your computer and use it in GitHub Desktop.
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
| to.view.center = offsetCenter | |
| container.addSubview(to.view) | |
| UIView.animateWithDuration(transitionDuration(transitionContext), delay: 0.0, usingSpringWithDamping: 1.0, initialSpringVelocity: 0.0, options: .CurveLinear, animations: { | |
| from.view.alpha = 0.5 | |
| to.view.center = from.view.center | |
| }, completion: { | |
| finished in | |
| transitionContext.completeTransition(true) | |
| }) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment