Answers for "how to add custom title to navigation bar in swift"

2

swift change navigation bar title

// 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
Posted by: Guest on June-16-2020
0

swift show title on navigation bar programmatically

override func viewDidLoad() {
     super.viewDidLoad()
     self.title = "Your title over here"
}
Posted by: Guest on July-02-2020

Code answers related to "how to add custom title to navigation bar in swift"

Code answers related to "Swift"

Browse Popular Code Answers by Language