Mandar Apte

UI/UX Designer from Mumbai, Maharashtra, India.

Set UINavigation Bar Large Title Text Foreground Colour.

Here is how to set UINavigation Bar Large Title Text Colour (Foreground Colour) in iOS 11, 12, 13 and above,

Declare Navigation Bar Title Text & Large Title Settings like this in your View Controller’s ViewDidLoad() Method:

self.navigationItem.title = "Home"
self.navigationController?.navigationBar.prefersLargeTitles = true
self.navigationController?.navigationItem.largeTitleDisplayMode = .automatic

Now write the below line inside ViewDidLoad() to get the Large Title Foreground colour as White Colour like this:

self.navigationController?.navigationBar.largeTitleTextAttributes = [NSAttributedString.Key.foregroundColor : UIColor.white]

Thanks & Regards
Mandar Apte