I add view controller background color in Attributes Inspector. The color is "00466E".
But, I add the color with code in one of my view controllers. I need to convert color code to Hexcolor.
var window_background: String! = "00466E"
window_background = match.value(forKey: "window_background") as! String
collectionview.backgroundColor = UIColor().HexToColor(hexString: window_background)<br>
After I add this code and run the project, the background color result is not the one I want.
It changes a little bit.
Anyone can explain me how this color occurs when I add color convert code? Please help me.