Created
August 7, 2017 13:25
-
-
Save oalansari82/eec9e25702209fe79691aa28792a34eb to your computer and use it in GitHub Desktop.
Transparent NavigationBar in Swift 3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Add the below code in AppDelegate.swift inside of didFinishLaunchingWithOptions function | |
UINavigationBar.appearance().barTintColor = UIColor.white | |
UINavigationBar.appearance().isTranslucent = true | |
UINavigationBar.appearance().shadowImage = UIImage() | |
UINavigationBar.appearance().backgroundColor = UIColor(red: 0, green: 0, blue: 0, alpha: 0) | |
UINavigationBar.appearance().titleTextAttributes = [NSForegroundColorAttributeName: UIColor.white] | |
UINavigationBar.appearance().setBackgroundImage(UIImage(), for: .default) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment