Created
July 16, 2020 09:57
-
-
Save stevencurtis/d77340383ee613ae898d9a1a0b7f287a to your computer and use it in GitHub Desktop.
animateman
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
for i in 0...3 { | |
guard let img = UIImage(named: String(i)) else {return} | |
manImageList.append(img) | |
if i == 3 { | |
self.manImage.animationImages = self.manImageList | |
self.manImage.animationDuration = 0.50 | |
self.manImage.startAnimating() | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment