I am new to swiftUI, I have 2 views. I want that in AddTodoView using the ColorPicker I select a color, and in the ContentView this color is displayed in the background.
ContentView
.background(AddTodoView().backgroundColor)
AddTodoView
@State var backgroundColor = Color(.systemBackground)
ColorPicker("Choosing a background color", selection: $backgroundColor)