Below is line of code for the above mentioned issue.
This issue is occurred in Swift 4.1
.
let textAttributes = [NSAttributedStringKey.foregroundColor:UIColor.white]
navigationController?.navigationBar.titleTextAttributes = textAttributes
Below is line of code for the above mentioned issue.
This issue is occurred in Swift 4.1
.
let textAttributes = [NSAttributedStringKey.foregroundColor:UIColor.white]
navigationController?.navigationBar.titleTextAttributes = textAttributes
I've fixed this problem by replacing the Key for Attributed String.
Here is my updated Code is:
let textAttributes = [NSForegroundColorAttributeName : UIColor.white]
navigationController?.navigationBar.titleTextAttributes = textAttributes