Last active
May 31, 2017 21:08
-
-
Save joncardasis/53271c9aa2295b43a9febb5f6d5e7ea8 to your computer and use it in GitHub Desktop.
[Medium Gists] Bad Animation case
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
let newButtonWidth: CGFloat = 60 | |
UIView.animate(withDuration: 2.0) { | |
self.styledButton.frame = CGRect(x: 0, y: 0, width: newButtonWidth, height: newButtonWidth) | |
self.styledButton.center = self.view.center | |
self.styledButton.layer.cornerRadius = newButtonWidth/2 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment