In my Application I am adding a UIView as a subView to the UINavigationBar.
let containerView = UIView()
containerView.frame = CGRect(x: 0, y: -(statusBarHeight), width: UIScreen.main.bounds.width, height: frame.height + statusBarHeight)
containerView.clipsToBounds = true
insertSubview(containerView, at: 0)
On iOS 10 the UIView will be placed under the barbuttonitems like I want it to be.
On iOS 11 will always be placed at the very top and therefore is hiding the titleLabel and barbuttonitem.
Any ideas?