-
-
Save marekbruchaty/571adb4e02adbe6d0583ffd31db59a0f to your computer and use it in GitHub Desktop.
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