swift uibutton title color code example
Example 1: set color for uibutton programmatically swift
button.setTitleColor(.red, for: .normal)
Example 2: swift navigation bar title color
// Place this in your didFinishLaunchingWithOptions method in the AppDelegate
let attrs = [
NSAttributedString.Key.foregroundColor: UIColor.white
]
UINavigationBar.appearance().titleTextAttributes = attrs