I want to test the new ColorPicker in swift UI.
First I can see the color ring. When I am trying to choose something, the new modal view with quite complicated picker is appearing, I have many ways to choose something and this is ok. The problem is, I get stuck with the modal view and cannot make it disappear and continue with the chosen color. How to make it?
Code Block struct ContentView: View { @State private var newColor = Color.white var body: some View { ColorPicker("choose something", selection: $newColor) } }
First I can see the color ring. When I am trying to choose something, the new modal view with quite complicated picker is appearing, I have many ways to choose something and this is ok. The problem is, I get stuck with the modal view and cannot make it disappear and continue with the chosen color. How to make it?