SwiftUI ColorPicker "opened" and "closed" events?

I need to be able to undo / redo the colors that are picked with the new SwiftUI ColorPicker ( on the iPad : it's presented as a floating window )

The thing that makes my job very difficult is that there is apparently no way to know that *the user has indeed chosen a color ( and therefore closed the panel )*

Instead, the behavior of ColorPicker is that it will keep updating the binded color as the user is manipulating the color controls. This is very helpful to show a live preview, but you don't want to register all these color variations for undo / redo purposes : you only want the color that was finally picked.

Therefore there is no logical distinction between the colors that the user *tried*, and the one that was *selected*

And I looked everywhere : there aren't any modifiers or notifications related to that.

I know SwiftUI hasn't been there for long, but this seems like a crucial functionality that's missing!

Has anyone found a workaround?
SwiftUI ColorPicker "opened" and "closed" events?
 
 
Q