title: How to get position of selected item of collection view?
body: <p>In my project there is a grid of users. I made grid using collection view. When user taps on cell I need position or frame of selected cell. I have used touch event of view but it's not working in the case of collection view.</p>
  
  <pre><code>override func touchesBegan(_ touches: Set&lt;UITouch&gt;, with event: UIEvent?) {
      let touch = touches.first!
      let location = touch.location(in: self.view)
      print(location)
  }
  </code></pre>
  
  <p>also this method works when you touch rest of UIView expect collectionView items.</p>