Skip to content

Instantly share code, notes, and snippets.

@switz
Created January 24, 2015 16:10
Show Gist options
  • Save switz/2817151a322cfc855c8c to your computer and use it in GitHub Desktop.
Save switz/2817151a322cfc855c8c to your computer and use it in GitHub Desktop.
func animateLabels() {
self.view.layoutIfNeeded()
UIView.animateWithDuration(3.0, delay: 1, options: .CurveEaseIn,
animations: {
println(self.prevConstraint.constant)
self.prevConstraint.constant += 50.0;
self.view.layoutIfNeeded()
}, completion: nil)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment