Skip to content

Instantly share code, notes, and snippets.

@ktanaka117
Created December 31, 2018 15:24
Show Gist options
  • Save ktanaka117/251821c4e67f411ccd413e5bbad52c3a to your computer and use it in GitHub Desktop.
Save ktanaka117/251821c4e67f411ccd413e5bbad52c3a to your computer and use it in GitHub Desktop.
let transformTrans = CGAffineTransform(translationX: 0, y: -animationViewCenterMovementAmount)
let transformScale = CGAffineTransform(scaleX: 0.8, y: 0.8)
animationView.transform = transformScale.concatenating(transformTrans)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment