Search
 
SCRIPT & CODE EXAMPLE
 

SWIFT

swift change navigation bar color

// Navigation Bar:
navigationController?.navigationBar.barTintColor = UIColor.green

// Navigation Bar Text:
navigationController?.navigationBar.titleTextAttributes = [.foregroundColor: UIColor.orange]

// Tab Bar:
tabBarController?.tabBar.barTintColor = UIColor.brown

// Tab Bar Text:
tabBarController?.tabBar.tintColor = UIColor.yellow
Comment

swift navigation bar title color

// Place this in your didFinishLaunchingWithOptions method in the AppDelegate
let attrs = [
  NSAttributedString.Key.foregroundColor: UIColor.white
]

UINavigationBar.appearance().titleTextAttributes = attrs
Comment

PREVIOUS NEXT
Code Example
Swift :: swift convert dictionary to json 
Swift :: swift first where 
Swift :: update cell value swift 
Swift :: uitableviewcell automatic height 
Swift :: swift open web page 
Swift :: firebase nil value equals 
Swift :: swift xcode debug cannot see code backtrace 
Swift :: swift convert string to ns muteable string 
Swift :: quartzcore framework pi chart 
Swift :: how to find uibutton title text 
Swift :: swift bring something to front of view 
Swift :: how to get the last element of an array in swift 
Swift :: swiftui vstack alignment 
Swift :: Properties Swift 
Swift :: swiftui full screen sheet 
Swift :: dark mode change immediately swift 
Swift :: and in swift1 
Swift :: how to style textfield swiftui 
Swift :: swift iterate over a dictionary 
Swift :: changing color of background swift 
Swift :: Package swiftmailer/swiftmailer is abandoned, you should avoid using it. Use symfony/mailer instead. 
Swift :: navigationbarhidden not working swiftui 
Swift :: set font uilabel swift 
Swift :: swift fit label to text 
Swift :: how to include a library in swift 
Swift :: swift enum nib 
Swift :: Optional & Default Parameter Swift 
Swift :: swift from 1 to 01 
Swift :: free robux codes 
Swift :: Swift break statement with nested loops 
ADD CONTENT
Topic
Content
Source link
Name
5+4 =