Chapter 3: Image Loading Example


I’m wondering how the starting code in collectionView(_:cellForItemAt:) is executing on the main UI thread? Is it slow because it is running on the main UI thread by default? I thought for that to happen it needed to be inside the DispatchQueue.main.async { } closure. Any explanation is greatly appreciated.


The app runs on the main thread, by default, unless you do something to move it elsewhere.

1 Like