title: Collection View Cell Button not triggering action
body: <p>So I have a button that looks like a pencil in a collection view cell xib.</p>
  
  <p><a href="https://i.stack.imgur.com/TccEe.png" rel="noreferrer"><img src="https://i.stack.imgur.com/TccEe.png" alt="enter image description here"></a></p>
  
  <p>Then I have this code.</p>
  
  <pre><code>func collectionView(_ collectionView: UICollectionView, cellForItemAt indexPath: IndexPath) -&gt; UICollectionViewCell {
  
      let cell = collectionView.dequeueReusableCell(withReuseIdentifier: "groupsCollectionViewCellIdentifier", for: indexPath) as! GroupCollectionViewCell
  
      //add action to the edit button
      cell.editButton.tag = indexPath.row
      cell.editButton.addTarget(self, action: #selector(GroupsCollectionViewController.editGroupAction), for: .touchUpInside)
  
      return cell
  }
  
  //segue to edit group
  func editGroupAction() {
      performSegue(withIdentifier: "editGroupSegue", sender: self)
  }
  </code></pre>
  
  <p>But whenever I click the edit button. Nothing is happening. I wonder what's missing.</p>