Fade when changing UIImageView’s image

UIView.transition(with: self.imageView, duration:0.5, options: .transitionCrossDissolve, animations: { self.imageView.image = newImage }, completion: nil)

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.