iOS26: Back button changes appearance when modal screen is shown

I use appearance api to set a custom background image for my navigation bar. At the start color of the back button icon is black. But for some reason color becomes white when new screen is presented modally. My whole project is relied on the appearance api so I cannot remove or replace it. Looks like a bug. The setup code is simple:

func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
        // Override point for customization after application launch.
        setupappearance()
        return true
    }
    
    func setupappearance() {
        let navImage = UIImage(named: "new_navigation_background1")
        
        let appearance = UINavigationBarAppearance()
        appearance.configureWithOpaqueBackground()
        appearance.backgroundImage = navImage
        
        UINavigationBar.appearance().scrollEdgeAppearance = appearance
        UINavigationBar.appearance().standardAppearance = appearance
        UINavigationBar.appearance().compactAppearance = appearance
        UINavigationBar.appearance().compactScrollEdgeAppearance = appearance
    }

Answered by DTS Engineer in 861305022

While the technique of using the appearance APIs might remain valid for customizing the navigation bar in iOS 18 and earlier, starting in iOS 26, we recommend you reduce your use of custom backgrounds in navigation elements and controls and let the system determine the navigation bar background appearance.

Any custom backgrounds and appearances you use in the navigation bar might overlay or interfere with Liquid Glass or other effects that the system provides.

To learn how to customize your app’s navigation bar in iOS 25, please review the sample code provided in the Customizing your app’s navigation bar documentation.

While the technique of using the appearance APIs might remain valid for customizing the navigation bar in iOS 18 and earlier, starting in iOS 26, we recommend you reduce your use of custom backgrounds in navigation elements and controls and let the system determine the navigation bar background appearance.

Any custom backgrounds and appearances you use in the navigation bar might overlay or interfere with Liquid Glass or other effects that the system provides.

To learn how to customize your app’s navigation bar in iOS 25, please review the sample code provided in the Customizing your app’s navigation bar documentation.

Thanks for the answer. But it looks like a system bug. Back button changes it's color while navigation bar has the background. It cannot be expected behavior. Also Customizing your app’s navigation bar does not provide any information about customizing navigation's bar background. At the moment we cannot remove custom background from the application, because it is what user is used to for the last 5 years. Clients will not be satisfied with such changes. Are there any plans to fix it? Or any workarounds to overcome the issue?

@DTS Engineer Hello. Please check my previous comment.

iOS26: Back button changes appearance when modal screen is shown
 
 
Q