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.
Code Block import SwiftUI 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() } } }