I have a collection view that I want to display hourly weather in. I seem to have a problem with loading the cell, and for some reason scrolling forwards and then back loads the
I fixed the problem by adding cell.layoutIfNeeded() before the return cell. Everything loaded as expected without any scrolling!
cell.layoutIfNeeded()
return cell
Seems like you populate your cells asynchronously, if so then add a mycollectionview.reloadData() at the end.