JoshATA, It appears that the HSplitView is causing it. If you run the following, and change light to dark or vice versa in System Preferences, you see the "Test" button behave badly.
struct ContentView: View {
var body: some View {
HSplitView {
VStack {
Text("Does this button change color correctly?")
Button("Test") {
print("Hi.")
}
}
}
.frame(maxWidth: .infinity, maxHeight: .infinity)
}
}
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: