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// 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
Also in Swift:
- register page
- The Swift pod `qr_code_scanner` depends upon `MTBBarcodeScanner`, which does not define modules
- swift change background color
- get length of array swift
- swift uiview add tap gesture
- dequeueReusableCellWithIdentifier returns nil
- add textfield in swiftui
- get icloud doc swift
- swift change navigation bar color
- fnb swift code
- rxswift map
- add buton border swift
- foreach swift
- swift xcode debug cannot see code backtrace
- swift swipe gesture
- swift 5 only the day number from date
- add border to button swiftui
- get device height spritekit
- ui alert swift yes no
- show back button in navbar swift
- swift convert decimal to string
- Make a VStack fill the width of the screen in SwiftUI
- swift has Top Notch
- how to set the font of text in swiftui