I want to change my custom navigation bar's background color and also its title font color , font style and font size. so i tried this code into the AppDelegate.swift file 

```
 UINavigationBar.appearance().barTintColor = UIColor(red: 0/255, green: 162/255, blue: 255/255, alpha: 1.0)
 UINavigationBar.appearance().tintColor = UIColor.white
 let navigationTitleFont = UIFont(name: "Poppins", size: 20)!
 let navigaiontitlecolor = UIColor.white

 UINavigationBar.appearance().titleTextAttributes = [NSAttributedStringKey.foregroundColor : navigaiontitlecolor]
 UINavigationBar.appearance().titleTextAttributes = [NSAttributedStringKey.font : navigationTitleFont]  

```

i got the background color. my title font style and size both are ok. but my title font color is not ok. so i go for searching and i applied this link code
 [Change Both Title Text Color and Font in all Navigation Bars](https://stackoverflow.com/questions/35495713/change-both-title-text-color-and-font-in-all-navigation-bars) 
 but did not work in my case. what to do?