Swift - UICollectionView + Xib - Dynamic height This repository is a support for a medium story You can use it as you please and don't hesitate to go read the story if you want some explanation. medium story