title: UICollectionViewCell zero spacing not working
body: <p>I did create a custom calendar based on <code>UICollectionView</code>.</p>
  <p>One <code>UICollectionViewCell</code> - one date in the calendar. I want to delete spacing between cells.
  <code>CollectionView</code> layout settings -</p>
  <pre><code>func collectionView(_ collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, sizeForItemAt indexPath: IndexPath) -&gt; CGSize {
      return CGSize(width: (collectionView.frame.width / 7), height: collectionView.frame.width / 7)
  }
  
  func collectionView(_ collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, insetForSectionAt section: Int) -&gt; UIEdgeInsets {
      return UIEdgeInsets(top: 0, left: 0, bottom: 0, right: 0)
  }
  
  func collectionView(_ collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, minimumLineSpacingForSectionAt section: Int) -&gt; CGFloat {
      return 0.0
  }
  
  func collectionView(_ collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, minimumInteritemSpacingForSectionAt section: Int) -&gt; CGFloat {
      return 0.0
  }
  </code></pre>
  <p><a href="https://i.stack.imgur.com/KLF9J.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/KLF9J.png" alt="enter image description here" /></a></p>
  <p>In different screen sizes, unless iPhone X, we will see the spacing between cells.</p>
  <p><a href="https://i.stack.imgur.com/ojqID.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ojqID.png" alt="enter image description here" /></a></p>
  <p>How to fix it?</p>