I have some views that show up in a navigation controller. Two of these views have a longer title for the navigation bar.
The problem is that when the title is too
In case you have a view added into titleView, and you want to resize the view, you can use this code (Swift 3):
self.translatesAutoresizingMaskIntoConstraints = false self.layoutIfNeeded() self.sizeToFit() self.translatesAutoresizingMaskIntoConstraints = true