title: Buttons in collectionViewCell not triggering functions
body: <p>I created a button in a supplementary collectionView cell as header and added a button with a target to it but it doesn't trigger the function when tapped. What am I doing wrong? </p>
  
  <p>Below is the button I created and its target function in the  cell class.  </p>
  
  <pre><code>let dummyButton :UIButton = {
      let button = UIButton(type: .system)
      button.setTitle("Dummy", for: .normal)
      button.layer.cornerRadius = 3
      button.layer.borderWidth = 1
      button.titleLabel?.font = UIFont.systemFont(ofSize: 12)
      button.tintColor = UIColor.brown
      button.addTarget(self, action: #selector(handleTrash), for: .touchUpInside)
      return button
  }() 
  
  
  @objc func handleTrash (){
      print("It worked this time around so what was going on?")
  }
  </code></pre>
  
  <p>I wrote all these in the collectionView Cell subclass. Please help</p>