title: Swift how to detect specific String in uilabel
body: <p>I would like to add <code>UITapGestureRecognizer</code> to label and detect which specific text tapped. 
  for instance text on the label is <code>hi, how are you</code> And if user tapped <code>hi</code> then I would like to detect that and print that text.</p>
  
  <p>I tried like this but can't add <code>UITapGestureRecognizer</code> to the <code>element</code>. I understand because <code>element</code> doesn't have that property.</p>
  
  <pre><code>  guard let text = textLabel.text? else { return }
          let separateText = text.components(separatedBy: ",")
              separateText.forEach { (element) in
                      let myGesture = UITapGestureRecognizer(target: self, action: #selector(handleDelete))
                  element.isUserInteractionEnabled = true
                  element.addGestureRecognizer(myGesture)      
        }
  
    @objc func handleDelete() {
       print(element)
      }
  </code></pre>
  
  <p>How can I achieve what I want? 
  Should I take different approach?
  Thank you in advance!</p>