I have added a couple labels and an image to my navigation title bar. That all works great. But I want to cover all of it with a UIButton
, but I can't get the UIButton
to register any taps.
Here's what my view hierarchy looks like:
User interaction is enabled on everything, and I have an IBAction
connected to the Button like this:
@IBAction func tapProjectEdit(_ sender: UIButton) {
print("This never fires. :(")
}
Am I not allowed to have a UIButton
in the navigation bar? Is there another way to pull this off?