We've already established how similar
UITableView is to
UICollectionView. In terms of performance, the similarities just don't stop.
UICollectionView is optimized to display cells on screen as fast as possible with as little memory usage as possible. This is especially important for
UICollectionView because in a collection, a lot more views could potentially be on screen than in a table. This depends heavily on your layout choices, and this makes it even more important for
UICollectionView to be optimized the way it is.
The fact that
UICollectionView can show a lot of cells at once makes it a little bit harder to manage its performance. Before iOS 10, cell reuse was managed as depicted in the next screenshot. All of ...