title: how to set dynamic height of a Collection View, the 'view' not the 'cells'?
body: <p>I have embedded a collection view in another view and disabled the collection view's scrolling ability, what i want to achieve is similar to Instagram's profile tab.  However, I cannot figure out how should I set the height of the collection view in this case since the number of cells are dynamic.  </p>
  
  <p>I tried searching different solutions but most results are on changing the cells dynamically but not the collection view height itself. Is there any default/standard solutions for that?</p>