title: How to increase UICollectionView height dynamically as it's content size increases?
body: <p>I have a <code>UICollectionView</code> and inside that <code>UICollectionView</code> there are three cells and one header.
  The header is for image.
  And the three cells are for Social likes,About and Gallery.
  Here is the view<a href="https://i.stack.imgur.com/RpDvc.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/RpDvc.png" alt="enter image description here"></a></p>
  
  <p>Inside that Gallery cell there is a <code>UICollectionView</code> .
  I want that <code>UICollectionView</code> (Inside Gallery Cell) increases it's height as it's content increases so that the Gallery Cell increases it's height then the whole the View i.e the parent <code>UICollectionView</code> will increase it's height and the whole page will scroll.</p>
  
  <p>I can't increase the height of the <code>UICollectionView</code> inside the Gallery Cell dynamically as it's content increases so that the Gallery Cell will increase it's height dynamically and the whole page will increase it's height dynamically.
  <a href="https://i.stack.imgur.com/Y69ZV.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Y69ZV.png" alt="enter image description here"></a></p>