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 :: dismiss keyboard when tap outside swift 5 
Swift :: go to view controller programmatically swift 
Swift :: try? as? in swiftui 
Swift :: swift add programmatically constraint to view 
Swift :: Swift Basic Input 
Swift :: get height of navigation bar swift 
Swift :: remove cocoapods swiftr 
Swift :: swift edit constraint programmatically 
Swift :: how to set the stack color in swiftui 
Swift :: uilabel make bold 
Swift :: ios get device id 
Swift :: switch button swift 5 
Swift :: uilabel set fon siz 
Swift :: date format swift 
Swift :: save file with % swift 
Swift :: uitextfield set max length 
Swift :: Swift "Hello, World!" Program 
Swift :: how to loop in swift 
Swift :: swift out of bound elelemnt 
Swift :: Swift Floating-point Literals 
Swift :: Swift static Methods 
Swift :: Swift Assigning and accessing a value from an optional 
Swift :: How to create a typealias? 
Swift :: Initializer Swift 
Swift :: swift concurrency datatask before ios 15 
Swift :: swift ease in out animatekeyframes 
Swift :: swift navigationbar not working 
Swift :: So, because promart depends on both flutter_test from sdk and freezed ^1.1.1, version solving failed. [ ] FINE: Exception type: SolveFailure 
Swift :: swift uicollectionview reloaddata completion 
Ruby :: rails send test email 
ADD CONTENT
Topic
Content
Source link
Name
2+4 =