I\'ve got a custom view inside of a UIBarButtonItem, set by calling -initWithCustomView.
My bar button item renders fine, but when I tap it, it doe
If you do not want to settle with an UIImage and have a custom view in your barbuttonitem, set a tap gesture recognizer to your barbuttonitem's customview property
let tap = UITapGestureRecognizer(target: self, action: #selector(goProButtonPressed))
deviceStatusBarButtonItem.customView?.addGestureRecognizer(tap)