Skip to content

Instantly share code, notes, and snippets.

@pigfly
Created March 29, 2016 23:51
Show Gist options
  • Save pigfly/5dbeb12d8fdb06e8207bea5247637a0f to your computer and use it in GitHub Desktop.
Save pigfly/5dbeb12d8fdb06e8207bea5247637a0f to your computer and use it in GitHub Desktop.
Gist for my post core animation explained
demoView.frame = CGRectMake(0, 0, 100, 100)
demoView.backgroundColor = UIColor.purpleColor()
self.backgroundColor = UIColor.greenColor()
UIView.animateWithDuration(5.0) { () -> Void in
self.backgroundColor = UIColor.grayColor()
self.demoView.center = CGPointMake(100, 100)
}
puts("foo bar")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment