The button is created like this:
// FIXME: не работает в iOS 10 !!! languageTopBarButton = UIButton(type: .custom) languageTopBarButton.setImage(UIImage(named: "iconGlobe"), for: .normal) languageTopBarButton.setTitle(title, for: .normal) languageTopBarButton.setTitleColor(UIColor.green, for: .normal) languageTopBarButton.addTarget(self, action: #selector(rightNavButtonTapped), for: .touchUpInside) let navBarHeight = navigationController?.navigationBar.frame.size.height var rightButtonFrame = languageTopBarButton.frame rightButtonFrame.size = CGSize(width: rightButtonFrame.width, height: navBarHeight!) languageTopBarButton.frame = rightButtonFrame let buttonItem = UIBarButtonItem(customView: languageTopBarButton) navigationItem.rightBarButtonItem = buttonItem in iOS 11, everything is fine with it, but in iOS 10 it does not appear:
What is wrong doing?

