NavigationBar Back Button Color

I am trying to change the colour of the "Back" from blue to white but having difficulty do so, if anyone can suggest me a better way to do it would be grateful.

"import UIKit

class AppDelegate: UIResponder, UIApplicationDelegate { var window: UIWindow?

func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
    let appearance = UINavigationBarAppearance()
    appearance.configureWithOpaqueBackground()
    appearance.backgroundColor = UIColor(red: 0.216, green: 0.776, blue: 0.349, alpha: 1)
    appearance.titleTextAttributes = [.foregroundColor: UIColor.white]
    appearance.largeTitleTextAttributes = [.foregroundColor: UIColor.white]

    UINavigationBar.appearance().standardAppearance = appearance
    UINavigationBar.appearance().scrollEdgeAppearance = appearance
    UINavigationBar.appearance().tintColor = .white
    

    return true
}

}"

Answered by DTS Engineer in 791435022

@3NiTiN3 You only need to set the the tintColor. You could try:


    func applicationDidFinishLaunching(_ application: UIApplication) {
        UINavigationBar.appearance().tintColor = .systemTeal
    }

@3NiTiN3 You only need to set the the tintColor. You could try:


    func applicationDidFinishLaunching(_ application: UIApplication) {
        UINavigationBar.appearance().tintColor = .systemTeal
    }
NavigationBar Back Button Color
 
 
Q