title: Setting minimumLineSpacing for UICollectionViewFlowLayout has no effect, must use insetForSectionAtIndex function?
body: <p>The goal is to define the spacing between sections for a UICollectionView.</p>
  
  <p>However, setting the <code>UICollectionViewFlowLayout</code> as follows with the <code>minimumLineSpacing</code> property has no effect:</p>
  
  <pre><code>   // Init &lt;collectionView&gt;
      collectionView.alwaysBounceVertical = true
      collectionView.contentInset = UIEdgeInsets(top: CollectionViewTopPadding, left: 0, bottom: CollectionViewBottomPadding, right: 0)
      let flowLayout = collectionView.collectionViewLayout as! UICollectionViewFlowLayout
      flowLayout.minimumLineSpacing = 5
  </code></pre>
  
  <p>The only approach that's working is to use the <code>insetForSectionAtIndex</code> as follows:</p>
  
  <pre><code>func collectionView(collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, insetForSectionAtIndex section: Int) -&gt; UIEdgeInsets {
      return UIEdgeInsets(top: 5, left: 0, bottom: 0, right: 0)
  }
  </code></pre>
  
  <p>Other examples on SO set <code>minimumLineSpacing</code> so can anyone explain why this code isn't working?</p>