Skip to content

Instantly share code, notes, and snippets.

@eliperkins
Created June 6, 2014 19:09
Show Gist options
  • Save eliperkins/b367ec0aafc1ad42142d to your computer and use it in GitHub Desktop.
Save eliperkins/b367ec0aafc1ad42142d to your computer and use it in GitHub Desktop.
UIView animateWithDuration in Swift
UIView.animateWithDuration(1) {
view.center = CGPoint(x: 500, y: 0)
view.alpha = 0
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment