Question : swiftui color picker
Answered by : tony-sacco
struct ContentView: View { @State private var bgColor = Color(.red) var body: some View { VStack { ColorPicker("Pick a color", selection: $bgColor) } }
}
Source : https://developer.apple.com/documentation/swiftui/colorpicker | Last Update : Sun, 17 Jul 22