Created
December 29, 2019 08:57
-
-
Save agammahajan1/ffa7a7a0c7a65c1e2e46a078d2aab485 to your computer and use it in GitHub Desktop.
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 image_1 = UIImage(named: "image-1")! | |
let image_2 = UIImage(named: "image-2")! | |
let image_3 = UIImage(named: "image-3")! | |
let images = [image_1, image_2, image_3] | |
let animatedImage = UIImage.animatedImage(with: images, duration: 2.0) | |
imageView.image = animatedImage |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment