title: Button inside CollectionView not clickable
body: <p>I have a button in a custom cell of a collectionview. The collectionview is on a scrollview. For some reason, I am not able to click on the button. I've checked that all my elements have User Interaction enabled.</p>
  
  <p>Here is my layout of the collection (I've hidden some sensitive data)
  <a href="https://i.stack.imgur.com/sOmQI.png" rel="noreferrer"><img src="https://i.stack.imgur.com/sOmQI.png" alt="enter image description here"></a></p>
  
  <p>Here is my custom collection view cell:</p>
  
  <pre><code>class MyCollectionViewCell: UICollectionViewCell {
  
      @IBOutlet weak var nameLabel: UILabel!
      @IBOutlet weak var connectButton: UIButton!
  
      var onConnectTap: (MyCollectionViewCell) -&gt; Void)?
      @IBAction func connectButton(_ sender: Any) {
          onConnectTap?(self)
      }
  
      func populate(_ user: User) {
          nameLabel.text = user.name
       }
  }
  </code></pre>
  
  <p>I have a xib file where a Touch Up Inside event of a button has been hooked up to the connectButton IBAction.</p>
  
  <p>And in my ViewController: </p>
  
  <pre><code>MyCollectionView.register(UINib(nibName: "MyCollectionViewCell", bundle: nil), forCellWithReuseIdentifier: "cell") 
  </code></pre>
  
  <p>Here's my collection view function in my ViewController:</p>
  
  <pre><code>func collectionView(_ collectionView: UICollectionView, cellForItemAt indexPath: IndexPath) -&gt; UICollectionViewCell {
  
          let cell = myCollectionView.dequeueReusableCell(withReuseIdentifier: "cell", for: indexPath) as! MyCollectionViewCell
          let user = users.values[indexPath.row]
          cell.populate(user)
  
          cell.onConnectTap = { (cell) in
              //do something
          }
  
          return cell
  
  }
  </code></pre>
  
  <p>Nothing happens when I click on the button. Am I missing something here? Is the scroll view interfering? Do I need to specifiy a addTarget? Or something else?</p>