Skip to content

Instantly share code, notes, and snippets.

@pMalvasio
Last active August 17, 2020 18:25
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 pMalvasio/82ec0abbdcf9b1776a533e673e8f6533 to your computer and use it in GitHub Desktop.
Save pMalvasio/82ec0abbdcf9b1776a533e673e8f6533 to your computer and use it in GitHub Desktop.
let animationView = AnimationView()
let animation = Animation.named("YOUR_ANIMATION")
animationView.animation = animation
animationView.contentMode = .scaleAspectFit
animationView.play()
animationView.translatesAutoresizingMaskIntoConstraints = false
view.addSubview(animationView)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment