Open tataelm opened 6 years ago
I have found the answer.. In case anyone has this problem;
go to your appdelegate and write the code in didFinishLaunchingWithOptions
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
// Override point for customization after application launch.
let navigationBarAppearnce = UINavigationBar.appearance()
navigationBarAppearnce.tintColor = UIColor.white
navigationBarAppearnce.barTintColor = UIColor( red: CGFloat(121/255.0), green: CGFloat(117/255.0), blue: CGFloat(178/255.0), alpha: CGFloat(1.0) )
return true
}
this will affect whole navigation bar setting including Navbars within SVRevealViewController
Hello,
I am having a customizing issue. Functionally everything is fine. This my storyboard.
On storyboard, I set that custom color everywhere. But when I choose something to my "left slide view [2]", it shows from here standart color (grayish background, blue tint)
I tried change the color programmatically on viewDidLoad within TableViewController [3], but it only changes the color of previous navigation bar[1]. The color I want to change still the same.
This is the code I use in [3]
let navigationBarAppearnce = UINavigationBar.appearance() navigationBarAppearnce.tintColor = UIColor.white navigationBarAppearnce.barTintColor = UIColor(red: 0.121, green: 0.117, blue: 0.178, alpha: 1.00)
How can I change the color of nav var within SVRevealViewController?