I have created navigation bar with left bar button items using story board. Left bar button items include menu button, title button and search button as shown on below picture :

When i run the app with short text for title button it works fine as shown below: 
Problem is when the text is long which makes other button disappear as shown below :

Title bar button text is not truncating string by tail after changing text. below is the code i'm using to change text
TitleButton.setTitle(String(titleString.uppercased()) ,for: UIControl.State.normal)
After changing title text using above code, Title text style changed, text is overlapping and other bar items disappearing.
is there a way to force title button to truncate tail ?
TitleButton.titleLabel?.numberOfLines = 1