I currently have a UICollectionView within a UIScrollView, scrolling is disabled on the collectionView. The current issue is the collectionview cells are cut off, the collectionView doesn't dynamically set its height to fit within the scrollView. How can I change the collection to dynamically fit within the scrollview? Below is what I've tired
let newHeight = collectionView.sizeThatFits(CGSizeMake(collectionView.bounds.width, CGFloat(MAXFLOAT)))
collectionViewHeight.constant = newHeight.height
