Hosting ViewControllers in Cells
In the fairytale 🧚 version of UICollectionView, a cell has a simple view inside it. In the nightmarish reality, a cell sometimes needs to host a UIViewController. Here, we look at how to stuff a UIViewController instance inside a UICollectionViewCell, avoiding various gotchas.