Code:
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
// Override point for customization after application launch.
UINavigationBar.appearance().barTintColor = .red
return true
}
if prefersLargetitles is false then there is no problem. But with prefersLargeTitles = true, the color doesn't change. This used to work with iOS 12. But since iOS 13 this is not working. Can anybody help on how to customise navigation bars in iOS 13