I'm developing an application, I'd like the navigation bar to have the same body color as the project, I'm trying with the following code
UINavigationBar.appearance().barTintColor = UIColor.redColor()
This code works, changes to red, but I wanted another color and tried the following code
navigationBarAppearace.tintColor = UIColor.init(red: 23, green: 27, blue: 113, alpha: 1)
I also tried this one
let corBarra = UIColor(red: 24, green: 27, blue: 113, alpha: 1)
UINavigationBar.appearance().barTintColor = corBarra
Does anyone have a clue how to change to a color that is no longer pre-defined?