-
-
Save Parietal/dc9aac2addaba0d2a984 to your computer and use it in GitHub Desktop.
SWIFT: Fade when changing UIImageView's image
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
let toImage = UIImage(named:"image.png") | |
UIView.transitionWithView(self.imageView, | |
duration:5, | |
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