Last active
October 17, 2019 13:31
-
-
Save saru2020/613b8d949bc7cd9c5a11b5107fafcdbd to your computer and use it in GitHub Desktop.
This file contains 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) { //1 | |
self.button.frame = CGRect(x: 0, y: 0, width: newButtonWidth, height: newButtonWidth) //2 | |
self.button.center = self.view.center //3 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment