Gradient NavigationBar library written in Swift
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.
Demo Update Demo project. Dec 9, 2016
Tamamushi.xcodeproj Update Demo project Dec 8, 2016
Tamamushi add comments on framework Dec 8, 2016
.gitignore Initial commit Dec 6, 2016
LICENSE Initial commit Dec 6, 2016 Update Dec 31, 2016
Tamamushi.podspec Merge branch 'master' of Dec 9, 2016
tamamushi_header_gray.png Add files via upload Dec 9, 2016

Header of Tamamushi


Tamamushi is an easy to use gradient UINavigationBar written in Swift 3. You can use already defined gradient color sets like Facebook Messenger, YouTube, SoundCloud or other cool gradient color sets.

And "Tamamushi" is the Japanese name of the insect which has beautiful gradient color wings.


  • Swift 3
  • Xcode 8



pod 'Tamamushi'


Will be available soon.


import Tamamushi in the class you set gradient UINavigationBar

In AppDelegate

func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
    TMGradientNavigationBar().setInitialBarGradientColor(direction: .vertical, typeName: "SoundCloud")
    return true

In UIViewController(with NavigationBar)

override func viewDidLoad() {
    TMGradientNavigationBar().setGradientColorOnNavigationBar(bar: (self.navigationController?.navigationBar)!, direction: .vertical, typeName: "Facebook Messenger")


Using defined colors

You can use gradient color defined in gradients.json.

TMGradientNavigationBar().setInitialBarGradientColor(direction: .vertical, typeName: "SoundCloud")

Please look at the ist of gradient colors available.

Using original colors

Of course you can use original gradient colors.

TMGradientNavigationBar().setInitialBarGradientColor(direction: .horizontal, startColor: .red, endColor: .blue)


you can choose the direction of gradation. (Default is vertical)

.horizontal, or .vertical


This library is released with MIT license. And as a source of colors, JSON file from uiGradients by ghosh is used.