Skip to content

Instantly share code, notes, and snippets.

@marekbruchaty
Forked from licvido/app.swift
Last active April 10, 2018 12:29
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 marekbruchaty/571adb4e02adbe6d0583ffd31db59a0f to your computer and use it in GitHub Desktop.
Save marekbruchaty/571adb4e02adbe6d0583ffd31db59a0f to your computer and use it in GitHub Desktop.
Fade when changing UIImageView's image
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