title: How to set spacing between columns in a UICollectionView with a vertical scrolling grid
body: <p>I'm kinda new to <code>UICollectionViewFlowLayout</code> sophisticated topics, and yes!! I have checked all topic-related questions but still I'm stuck.</p>
  
  <p>All I'm trying to achieve is to set spacing between <strong>columns</strong> in <code>UICollectionView</code> with a <strong>vertical grid layout</strong>.  And from all previous questions on the "how to set spacing on <code>UIcollectionViewCells</code>" topic, the primary answers that I have try'd unsuccessfully Are:</p>
  
  <ol>
  <li><p>using <code>minimumInteritemSpacing</code> and <code>minimumLineSpacing</code> </p></li>
  <li><p>using <code>func collectionView(_ collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, insetForSectionAt section: Int) -&gt; UIEdgeInsets {</code></p></li>
  </ol>
  
  <p>the second solution for some reason did not achieve my goal 
    and the first solution is unhelpful in a <strong>vertical grid layout</strong> as the apple Docs instruct on the <code>collectionView(_:layout:minimumLineSpacingForSectionAt:)</code>: </p>
  
  <p><em>For a vertically scrolling grid, this value represents the minimum spacing between successive rows. For a horizontally scrolling grid, this value represents the minimum spacing between successive columns</em> </p>
  
  <p>my question is: How could I do an easy workaround so that I could set spacing  between <strong>columns</strong> in a vertical <code>collectionView</code> , since  the exiting <code>minimumInteritemSpacing</code> and <code>minimumLineSpacing</code>  apply on columns only on a horizontal grid. </p>