title: UILabel tap gesture not working when clicked
body: <p>I have created a label I am trying to turn into a segue to another page, but before I can setup the segue I have to make the label clickable.  I have tried numerous different ways that have been mentioned here but cannot seem to get it to work correctly.  The way my code is set up, the label is created in an external class associated with a UICollectionView, this class is not in the same swift file that the <code>ViewDidLoad()</code> function is in. </p>
  
  <p>Here is the creation of the label in the class file inside of its own class that is not related to the file that <code>ViewDidLoad()</code> is in.  The class that the label is in is being called in the <code>ViewDidLoad()</code> function, so the label and all of its properties are still being displayed.</p>
  
  <p>Creation of label </p>
  
  <pre><code> @IBOutlet weak var moreLabel: UILabel! = {
  
      let label = UILabel()
      label.text = "See More..."
      label.font = UIFont.italicSystemFont(ofSize: 16)
      label.textColor = UIColor.lightGray
      label.translatesAutoresizingMaskIntoConstraints = false
      label.textAlignment = .right
  
      label.isUserInteractionEnabled = true
  
      let tap = UITapGestureRecognizer(target: self, action: #selector(tapMore))
  
      return label
  
  }()
  </code></pre>
  
  <p>Function for the click</p>
  
  <pre><code>@objc func tapMore(sender: UITapGestureRecognizer){
  
      print ("You tapped more")
  
  }
  </code></pre>