Skip to content

Instantly share code, notes, and snippets.

@vvit
Last active September 23, 2016 14:06
Show Gist options
  • Save vvit/10975065 to your computer and use it in GitHub Desktop.
Save vvit/10975065 to your computer and use it in GitHub Desktop.
Constraint animation
view.layoutIfNeeded() // Optional. Ensure that all pending layout operations have been completed
UIView.animateWithDuration(5) {
someConstraint.constant = 0
self.view.layoutIfNeeded() // called on parent view
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment