Hi, I have a navigation element, there is a view that contains two labels that I added userInteractionEnabled for the view inside the navigation element (IBoutleted as navigationView)
navigationView.isUserInteractionEnabled = true
mainTitleClicked = UITapGestureRecognizer(target: self, action: #selector(mainTitleTapped))
self.navigationView.addGestureRecognizer(mainTitleClicked)
This worked in iOS 10, but when I run the same code in xcode 9, the iOS 11 UI gets messed up and the gesture is not recognized

IOS version 10

IOS Version 11
What should I change to make it work on ios 11
thanks for the help
source
share