title: How to handle background tap in UICollectionView
body: <p>I have a <code>UICollectionView</code> in my app and I want to handle the background tap of it to do some cool stuff, but I tried several solutions and neither of them was too good.</p>
  
  <p>Things I've tried:</p>
  
  <ul>
  <li>Adding a background view behind the <code>UICollectionViewCells</code> and handling the tap on that</li>
  <li>Adding a <code>UITapGestureRecognizer</code> to the <code>UICollectionView</code>'s view (which is the same as it's <code>collectionView</code> property)</li>
  </ul>
  
  <p>The problem in both cases is that while it handles the tap of the background perfectly, it also handles the tap when it's on a <code>UICollectionViewCell</code>, so when the user selects an item, but in that case it shouldn't because these 2 things have different actions in my app.</p>