I\'ve got an UICollectionView with an UICollectionViewFlowLayout, and i want to calculate its content size (for return in intrinsicContentSiz
UICollectionView
UICollectionViewFlowLayout
intrinsicContentSiz
assuming your collectionView is named as collectionView you can take the height as follows.
let height = collectionView.collectionViewLayout.collectionViewContentSize.height