title: UICollectionView, full width cells, allow autolayout dynamic height?
body: <p><strong>Note</strong> For 2021!  See @Ely answer regarding <code>UICollectionLayoutListConfiguration</code> !!!!</p>
  <hr />
  <p>In a vertical <code>UICollectionView</code> ,</p>
  <p>Is it possible to have <strong>full-width cells</strong>, but, allow the <strong>dynamic height</strong> to be controlled by <strong>autolayout</strong>?</p>
  <p>This strikes me as perhaps the &quot;most important question in iOS with no really good answer.&quot;</p>
  <hr />
  <h1>Important:</h1>
  <p>Note that in 99% of cases, to achieve full width cells + autolayout dynamic height, simply <strong>use a table view.</strong> It's that easy.</p>
  <hr />
  <h1>So what's an example of where you need a collection view?</h1>
  <p>Collection views are far more powerful than table views.</p>
  <p>One straightforward example where you must use a collection view with autolayout dynamic height:</p>
  <p>If you <strong>animate</strong> between two layouts in a collection view. For example, between a 1 and 2 column layout, when the device rotates.</p>
  <p>That's a common idiom in iOS. Unfortunately it can only be achieved by solving the problem posed in this QA.  :-/</p>