The way you do this in iOS 13 has changed, you now use UINavigationBarAppearance class
let appearance = UINavigationBarAppearance(idiom: .phone)
appearance.largeTitleTextAttributes = [.foregroundColor: UIColor.red]
appearance.titleTextAttributes = [.foregroundColor: UIColor.red]
appearance.backgroundColor = .white
navigationItem.standardAppearance = appearance
navigationItem.scrollEdgeAppearance = appearance