Question : swift change navigation bar title
Answered by : sej
// Place this in your didFinishLaunchingWithOptions method in the AppDelegate
let attrs = [ NSAttributedString.Key.foregroundColor: UIColor.white, // changes color NSAttributedString.Key.font: UIFont(name: "Futura-Bold", size: 17)! // changes font
]
UINavigationBar.appearance().titleTextAttributes = attrs
Source : | Last Update : Tue, 23 Jun 20
Question : swift show title on navigation bar programmatically
Answered by : fine-flatworm-hd12mxcccv27
override func viewDidLoad() { super.viewDidLoad() self.title = "Your title over here"
}
Source : https://stackoverflow.com/questions/41690711/how-to-change-the-navigation-bar-title-programmatically-in-swift | Last Update : Thu, 09 Jul 20