title: Button added as an annotation view subview not working?
body: <p>I have added a subview to the annotation view on <code>didSelect</code> method of the map and it’s working as expected(screenshot). I have a button inside the popup, and it's active and user-interaction enabled, but I am not getting the button action?</p>
  
  <p>I did a view debugging and it seems the button is on top of the view stack. </p>
  
  <pre><code>func mapView(_ mapView: MKMapView, didSelect view: MKAnnotationView) {
      DispatchQueue.main.async {        
          view.addSubview(self.popupView)
      }
  }
  </code></pre>
  
  <p>This action method is inside the <code>Popupview</code> </p>
  
  <pre><code>@IBAction func actionTapPickup(_ sender: UIButton) {
     print("button tapped)
  }
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/bFzko.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/bFzko.png" alt="enter image description here"></a></p>