same issue
When you use use .preferredColorScheme or .colorScheme to modify the theme, when the tabview changes from dark to light, the tabview item color is abnormal
my code
TabView {
HomeView()
.tabItem {
Label("Home", systemImage: "chart.xyaxis.line")
}
}
.colorScheme(colorScheme) // preferredColorScheme
## or use ios18 api `Tab`
```swift
TabView {
Tab("Home", systemImage: "chart.xyaxis.line") {
SentView()
}
}
.colorScheme(colorScheme) // preferredColorScheme
steps:
change colorScheme from .light to .dark
then, change colorScheme from .dark to .light
Anomaly:
The text "Home" in tabItem does not return to its original color, and the current background color of tabview is also abnormal.
Switching to a different tabItem, the background color is restored, but the text color is still abnormal