swift - Color difference between UINavigationBar Tint Color and rest of app in IOS -


this design in sketch:

enter image description here

sketch says blue color 70,164,239.

so have following code 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 following view underneath (inside 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 what's going on, navigation bar color little lighter color of view. light blue there's slight difference if go darker blue gets more noticeable. appears navigation bar's colors never rich rest of pages views are:

enter image description here

the tintcolor tint color. combines translucency (is word?) of bar, along what's behind bar, give other resulting color.

if want full control on actual color of navigation bar, set translucent false , give background image consisting of rectangle of desired color - , no tint color.


Comments

Popular posts from this blog

jOOQ update returning clause with Oracle -

java - Warning equals/hashCode on @Data annotation lombok with inheritance -

java - BasicPathUsageException: Cannot join to attribute of basic type -