title: UINavigationBar Text Color in Swift
body: <p>How would I go about changing the color of the <code>UINavigationBar</code> in Swift?</p>
  
  <p>Most things online say to do something like:</p>
  
  <pre><code>[self.navigationController.navigationBar setTitleTextAttributes:@{NSForegroundColorAttributeName : [UIColor whiteColor]}];
  </code></pre>
  
  <p>Which I translated to </p>
  
  <pre><code>let titleDict: NSDictionary = ["NSForegroundColorAttributeName": UIColor.whiteColor()]
  self.navigationController.navigationBartitleTextAttributes = titleDict
  //self is referring to a UIViewController
  </code></pre>
  
  <p>But it doesn't work.  I already changed the background and button colors, but the text color doesn't change.  Any ideas?</p>