Skip to content

An extension to generate the same color with the navigation bar's translucent color

Notifications You must be signed in to change notification settings

sgflamel/UIColor-Translucent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

UIColor-Translucent

An extension to generate the same color with the navigation bar's translucent color

What's this extension work for?

When we set a color to the navigationbar's barTintColor, the navigation will light it and show a different color on screen. Use this extension you can simply get the modified color that is shown on the navigation bar.

How to use

Copy this file into your project and it's over...

let newColor = yourColor.getTranslucentColor()
// Or if you know the RGB values of your color
let newColor = getTranslucentColor(R: 255, G: 255, B: 255)

About

An extension to generate the same color with the navigation bar's translucent color

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages