Last active
January 20, 2019 15:51
-
-
Save sagaya/580ec581d3fb78e7375bbbefd00b8421 to your computer and use it in GitHub Desktop.
animate scale ios
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
fileprivate func scaleMethod() { | |
UIView.animate(withDuration: 0.75, animations: { | |
self.movingView.transform = .identity | |
}) { _ in | |
self.movingView.transform = CGAffineTransform(scaleX: 0.5, y: 0.5) | |
self.scaleMethod() | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment