title: Swift 4 - Adding UITapGestureRecognizer to a subview image - the method is not called
body: <p>I have the following <code>UITapGestureRecognizer</code> setup, but the method is not called?</p>
  
  <p>Note: that the <code>UITapGestureRecognizer</code> is added to a subview item.</p>
  
  <p>Also, it works when adding the <code>UIGestureRecognizerDelegate</code> in <code>SUStepView</code> itself - only problem is that I need it in the container. </p>
  
  <pre><code>class StepViewContainer: NSObject, UIGestureRecognizerDelegate {
  var view: SUStepView?
  
      @objc func tapAction(recognizer: UITapGestureRecognizer) {
  
      }
  
      override init(){
          super.init()
          // View
          self.view = Bundle.main.loadNibNamed("SignupV3Views", owner: self, options: nil)![0] as? SUStepView
  
          let mytapGestureRecognizer = UITapGestureRecognizer(target: self, action: #selector(tapAction))
          mytapGestureRecognizer.numberOfTapsRequired = 1
          self.view?.imageView.addGestureRecognizer(mytapGestureRecognizer)            
      }
  }
  </code></pre>
  
  <p>The view in StepViewContainer:</p>
  
  <pre><code>class SUStepView: UIView {
  @IBOutlet weak var imageView: UIImageView!
  
      @objc public func nextStepTap(sender: UITapGestureRecognizer) {
      }
  
      override func awakeFromNib() {
          let tapGestureRecognizer = UITapGestureRecognizer(target: self, action: #selector(nextStepTap))
          tapGestureRecognizer.numberOfTapsRequired = 1
          self.imageView.addGestureRecognizer(tapGestureRecognizer)
  
          self.imageView.isUserInteractionEnabled = true
          self.imageView.layer.masksToBounds = true
          self.imageView.layer.cornerRadius = self.imageView.frame.size.width / 2
          self.imageView.clipsToBounds = true
  
  }
  </code></pre>