Does anyone know why contentSize is not updated immediately after reloadData is called on UICollectionView?
If you need to know the contentSize the best work around
To get the content size after reload, try to call collectionViewContentSize of the layout object. It works for me.
collectionViewContentSize