Skip to content

Instantly share code, notes, and snippets.

@stevencurtis
Created July 16, 2020 09:57
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 stevencurtis/d77340383ee613ae898d9a1a0b7f287a to your computer and use it in GitHub Desktop.
Save stevencurtis/d77340383ee613ae898d9a1a0b7f287a to your computer and use it in GitHub Desktop.
animateman
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