Is there a way of tapping another view/object and open the picker (with a onTapGesture for instance? Apparently the only way is tapping on the small circle :|
I would like to tap the violet object and have the picker open.
I appreciate any help, thanks !
VStack {
ColorPicker("Color picker :", selection: $selectedColor, supportsOpacity: false)
.padding()
Rectangle()
.foregroundColor(selectedColor)
.onTapGesture {
// open picker :)
}
}