I have a navigation bar title that gets truncated if too long - based on the following code, how could the issue be fixed so that the title is displayed on 2 lines at runtime?
override func viewDidLoad() {
super.viewDidLoad()
title = checklist.name
self.navigationController?.navigationBar.titleTextAttributes = [NSFontAttributeName: UIFont(name: "CollegiateHeavyOutline", size: 23.0)!,
NSForegroundColorAttributeName: UIColor.init(red: 25.0/255.0, green: 25.0/255.0, blue: 112.0/255.0, alpha: 1.0)]
}
The screenshot below show the title with text size 17 (uses 2 lines - nice!)
But the following is not so nice and the title should read 'But this one is cut off with size 18 and over
Any thoughts?