Last active
July 21, 2017 02:54
-
-
Save iAmrSalman/027d47e2285361b22be3835a2fbf7f9b to your computer and use it in GitHub Desktop.
[change image animation] Fade when changing UIImageView’s image #swift3 #image #animation
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
UIView.transition(with: self.imageView, | |
duration:0.5, | |
options: .transitionCrossDissolve, | |
animations: { self.imageView.image = newImage }, | |
completion: nil) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment