Color de título UIViewController

Swift 5

let titleAttributes = [
  NSAttributedString.Key.foregroundColor: UIColor.red
]

or 

let textAttributes: [NSAttributedString.Key: Any] = [
  .foregroundColor: UIColor.red
]

let navBar = navigationController?.navigationBar
navBar.titleTextAttributes = titleAttributes
Wicked Wolf