title: Swift: addGestureRecognizer not work for stackview children
body: <p>Codes:</p>
  
  <pre><code>for ... {
     let view = CategoryClass.createMyClassView()
     view.myLabel.text = packTitle
     view.twoLabel.text = packText
     view.bgCaategory.layer.cornerRadius = 30
  
     i = i + 1
     if(i == 1){
        selectPackId = packId!;
        view.imgSelect.image = UIImage(named: "selected")
     } else {
        view.imgSelect.image = UIImage(named: "select")
     }
  
     view.addGestureRecognizer(UITapGestureRecognizer(target: self, action: #selector(handleSendData(sender:))))
  
     self.stackView.addArrangedSubview(view)
  }
  
  @objc func handleSendData(sender: UITapGestureRecognizer) {
     print("H 1")
  }
  </code></pre>
  
  <p>If i click on view, nothing print "H 1"</p>
  
  <p>I want if i click on view, get id or another value of view</p>