Skip to content

Instantly share code, notes, and snippets.

@ozgurshn
Created February 26, 2020 01:25
Show Gist options
  • Select an option

  • Save ozgurshn/0c08c175ce95d6193584f1a18358f73f to your computer and use it in GitHub Desktop.

Select an option

Save ozgurshn/0c08c175ce95d6193584f1a18358f73f to your computer and use it in GitHub Desktop.
UIimageview transition animation
//https://stackoverflow.com/questions/7638831/fade-dissolve-when-changing-uiimageviews-image/38350024#38350024
let toImage = UIImage(named:"myname.png")
UIView.transition(with: self.imageView,
duration: 0.3,
options: .transitionCrossDissolve,
animations: {
self.imageView.image = toImage
},
completion: nil)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment