title: Add target for UIBarButtonItem with Custom View not Working
body: <h2>Hello there,</h2>
  
  <p>I have a problem with adding a custom action to a UIBarButtonItem<br>
  The Target does not called <br>
  Did someone see the problem?</p>
  
  <pre><code>    let navBarMapImageView = UIImageView(frame: CGRect(x: 0, y: 0, width: 22, height: 22))
      navBarMapImageView.contentMode = .scaleAspectFit
      navBarMapImageView.image = image
      navBarMapImageView.isUserInteractionEnabled = true
      navBarMapImageView.target(forAction: #selector(openMaps), withSender: self)
      let navBarMapButton = UIBarButtonItem(customView: navBarMapImageView)
  </code></pre>
  
  <h3> thanks for help </h3>