The color difference between the color of the UINavigationBar Tint and the rest of the application in iOS

This is my project in Sketch:

enter image description here

The sketch says that the blue color is 70,164,239.

So, I have the following code for my tab:

UINavigationBar.appearance().barTintColor = UIColor(red: 70.0/255.0, green: 164.0/255.0, blue: 239.0/255.0, alpha: 1.0)
UINavigationBar.appearance().tintColor = UIColor.clearColor()
UINavigationBar.appearance().titleTextAttributes = [NSForegroundColorAttributeName : UIColor.whiteColor()]

And for the view below (inside the action):

self.two_buttons_view.backgroundColor = UIColor(red: 70.0/255.0, green: 164.0/255.0, blue: 239.0/255.0, alpha: 1.0)

But look what happens, the color of the navigation bar is always a little lighter than the color of the view. There is only a slight difference with this blue color, but if I go with a darker blue color, it will become much more noticeable. It seems that the colors of the navigation bar are never as rich as the rest of the page views:

enter image description here

+4
source share
1 answer

tintColor - . ( ?) , , , - .

, translucent false, , .

+16

Source: https://habr.com/ru/post/1649062/


All Articles