title: swift 3 - horizontal space between custom collection view cell
body: <p>I have a custom collection view cell which I'm currently separating with a divider line that is inside of each cell.</p>
  
  <p>I would like to modify this to remove the divider line and instead have a space between each of the cells. The cells take up the entire width and a dynamic height. How can I add some defined space between each of the different cells?</p>
  
  <p>I have a <code>UICollectionViewController</code> that is displaying my cells.</p>
  
  <pre><code>func collectionView(_ collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, minimumInteritemSpacingForSectionAt section: Int) -&gt; CGFloat {
      return 10
  }
  </code></pre>
  
  <p>But I believe this is the wrong one because it says section. I couldn't find one that didn't as I think its removed in Swift 3.</p>