一応コード struct ContentView: View { var body: some View { VStack { Text("Hello, world!") .padding() .background(Color("sampleColor")) .environment(\.colorScheme, .light) Text("Hello, world!") .padding() .background(Color("sampleColor")) .environment(\.colorScheme, .dark) Text("Hello, world!") .padding() .background(Color("sampleColor")) .environment(\.colorScheme, .light) .environment(\._colorSchemeContrast, .increased) Text("Hello, world!") .padding() .background(Color("sampleColor")) .environment(\.colorScheme, .dark) .environment(\._colorSchemeContrast, .increased) } } }