Created
March 2, 2018 16:38
-
-
Save PavelGnatyuk/612a3d6470b20ade12fb93b0e21976c5 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
// 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