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.

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