After selecting the color, the background color of another view I don't know how to change it at the same time.
struct ContentView: View { @State private var bgColor = Color.white
var body: some View { VStack { ColorPicker("Background Color", selection: $bgColor) } } }
Thank you for your cooperation, Professor!