Post

Replies

Boosts

Views

Activity

How can you dismiss the new ColorPicker?
Given the following code, how can you dismiss the ColorPicker in live previews or in the simulator? Currently, the ColorPicker displays fine, allows me to select different colors, but I cannot figure out how to dismiss it. struct ContentView: View {     @State private var bgColor = Color.white          var body: some View {         VStack {             ColorPicker("Color picker", selection: $bgColor)         }     } } struct ContentView_Previews: PreviewProvider {     static var previews: some View {         Group {             ContentView()         }     } }
8
0
2.3k
Jun ’20