title: Swift 3 Implement for tap detection on collectionView headers
body: <p>I have a UICollectionView with several sections and headers, and I would like to detect a tap on the section headers.</p>
  
  <p>It's working fine for cells thanks to </p>
  
  <pre><code>func collectionView(_ collectionView: UICollectionView, didSelectItemAt indexPath: IndexPath)
  </code></pre>
  
  <p>but there is nothing specific to section headers.</p>
  
  <p>I tried to implement a tapGestureRecognizer on the collectionView, which is working, but in that case, the above function is not triggered anymore.</p>
  
  <p>Is there a simple way to implement tap detection on cells as well as on section headers ?</p>
  
  <p>Thanks for your help :)</p>