Skip to content

Instantly share code, notes, and snippets.

@stevencurtis
Created May 19, 2020 15:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stevencurtis/4fdd5446710b6a9eb60e89bf42e76b75 to your computer and use it in GitHub Desktop.
Save stevencurtis/4fdd5446710b6a9eb60e89bf42e76b75 to your computer and use it in GitHub Desktop.
TransformAnimations
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