iOS 13.4 SDK update Navigation Bar title colour is set to Black?

Viewed 1261

I have a problem with iOS 13.4 update Navigation Bar title is set to Black. the title was set to white in attribute inspector for Navigation Bar before the update but after I update my Xcode to 11.4 and iOS SDK to 13.4.

enter image description here enter image description here

3 Answers

Swift 5 IOS 13 Interesting thing its will work only in viewDidLoad & viewWillAppear and not working in viewDidAppear

//MARK:- Call this function in viewDidLoad or viewWillAppear method
setNavBarWhite(viewController: self)

this is function

func setNavBarWhite(viewController: UIViewController) {
    if #available(iOS 13.0, *) {
        let appearance = UINavigationBarAppearance()
        appearance.configureWithOpaqueBackground()
        appearance.backgroundColor = .red
        appearance.titleTextAttributes = [.foregroundColor: UIColor.white]
        viewController.navigationController?.navigationBar.standardAppearance = appearance
    } else {
        viewController.navigationController?.navigationBar.barTintColor = .red
    }
} 

On your all xibs, find the root navigation bar, and set their tint color to default.

Related