Sep 2, 2018 · 1 min read
Excellent tutorial! But one thing…
UI elements should always be updated on the main thread. XCode will warn you of this.
Change self.imageContainer.image = loadedImage to:
DispatchQueue.main.sync {
self.imageContainer.image = loadedImage
}
Hope this helps!