If I set the background explicitly with my own defined colours
.background(isDarkMode ? Color.veryDarkGray : Color.lightGray)
It works.
But I need to rely on automatic application of colorScheme.
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: