Answers for "uiviewcontroller title color"

0

uiviewcontroller title color

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
Posted by: Guest on March-21-2022

Code answers related to "Swift"

Browse Popular Code Answers by Language