Switching from Dark to Light mode does not update the background of `TabView` in SwiftUI,

Since iOS 18 I have noticed a strange issue which happens to the TabView in SwiftUI when you switch from Dark to Light mode.

With this code:

import SwiftUI

struct ContentView: View {
    var body: some View {
        TabView {
            List {
                ForEach(0..<100, id: \.self) { index in
                    Text("Row: \(index)")
                }
            }.tabItem {
                Image(systemName: "house")
                Text("Home")
            }
        }
    }
}

struct ContentView_Previews: PreviewProvider {
    static var previews: some View {
        ContentView()
    }
}

The TabBar does not switch colours when going from dark to light, it work correctly when going from light to dark. Here is a video of iOS 18 with the issue:

Here is a video of iOS 17.5 with same code and no issue:

On real device it looks (better), the color does update but with delay.

I have submitted a feedback bug report, but in the meanwhile has anyone been back to resolve this?

@Amiorkov Could you please post the Feedback Number here for the record.

Switching from Dark to Light mode does not update the background of `TabView` in SwiftUI,
 
 
Q