title: Dynamic UICollectionView Cell Height
body: <p>I have an array of stack views with varying heights:
  <code>[Stack View A, Stack View B, Stack View C, Stack View D]</code></p>
  
  <p>I want to display them in a <code>collectionView</code>. Every <code>stackView</code> goes into a different <code>collectionView</code> <code>cell</code>. I am currently using a flow layout to set the height based on what the view is in the collection <code>viewController</code>.</p>
  
  <p>Would it be possible to abstract this so that the collection vc doesn't need to know anything about them? I can pass the view to be displayed in the cell and the cell's height is determined by the height of the stack view. Something like intrinsic content size, as opposed to setting it in the flow layout delegate <code>sizeforitem</code> method.</p>