UIButton in CollectionViewCell is not responding or calling the action (tvOS)

I have been searching and checking like over 50 topics and GitHub examples but still no solution for this and I’m still stuck.

I’m trying to put a UIButton in CollectionViewCell and perform the action, but is seems that it is not being selected and is not responding to anything.

I have been trying delegate protocol on cell from examples and topics, I have been calling the action from selector, show subview and resize lots of tings and much more, but still the same.

Is it a bug or what I’m doing wrong?

I’m showing a basic example where it reproduces this issue.

class CollectionViewCell: UICollectionViewCell {      @IBOutlet weak var addButton: UIButton!  }  class ViewController: UIViewController, UICollectionViewDataSource, UICollectionViewDelegate {  @IBOutlet weak var collectionView: UICollectionView!  override func viewDidLoad() {     super.viewDidLoad() }  @objc func yourFunc(sender : UIButton){     print("Working!") }  func collectionView(_ collectionView: UICollectionView, numberOfItemsInSection section: Int) -> Int {     return 1 }  func collectionView(_ collectionView: UICollectionView, cellForItemAt indexPath: IndexPath) -> UICollectionViewCell {      let cell = collectionView.dequeueReusableCell(withReuseIdentifier: "Cell", for:         indexPath) as! CollectionViewCell      cell.addSubview(cell.addButton)      cell.addButton.tag = indexPath.item      cell.addButton.addTarget(self, action: #selector(self.yourFunc), for: .primaryActionTriggered)      return cell }