Skip to content

Instantly share code, notes, and snippets.

@marchampson
Last active June 9, 2017 00:58
Show Gist options
  • Save marchampson/7e0f831d92d6031250bdc8e3e758be09 to your computer and use it in GitHub Desktop.
Save marchampson/7e0f831d92d6031250bdc8e3e758be09 to your computer and use it in GitHub Desktop.
let animationImages:[UIImage] = [UIImage(named: "img_01")!, UIImage(named: "img_02")!, UIImage(named: "img_03")!]
loadingImageView.animationImages = animationImages
loadingImageView.animationDuration = 1.5
loadingImageView.animationRepeatCount = 0
loadingImageView.startAnimating()
self.addSubview(loadingImageView)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment