Skip to content

Instantly share code, notes, and snippets.

@PavelGnatyuk
Created March 2, 2018 16:38
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 PavelGnatyuk/612a3d6470b20ade12fb93b0e21976c5 to your computer and use it in GitHub Desktop.
Save PavelGnatyuk/612a3d6470b20ade12fb93b0e21976c5 to your computer and use it in GitHub Desktop.
// In the second view-controller
let downloader = ImageDownloader()
func downloadImages() {
let image = self.downloader.download(image: "avatar")
self.imageView.image = image
//Other code updating all images in the view-controller
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment