Created
May 19, 2020 15:07
-
-
Save stevencurtis/4fdd5446710b6a9eb60e89bf42e76b75 to your computer and use it in GitHub Desktop.
TransformAnimations
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 translate = CGAffineTransform(translationX: 100, y: 100) | |
let rotate = CGAffineTransform(rotationAngle: 1600) | |
let scale = CGAffineTransform(scaleX: 0.5, y: 0.5) | |
UIView.animate(withDuration: 0.5) { | |
self.combinationView.transform = translate.concatenating(rotate).concatenating(scale) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment