I would like to replicate this picker in swiftUI. In particular, I have a button on the bottom left of the screen and when I click it I would like to show different icons (similar to the image below, but vertically). As soon as I click on one of the choices the button should shrink back to the initial form (circle) with the chosen icon.
When closed:

When open:

I am new to this language and to app in general, I tried with a Pop Up menu, but it is not the desired result, for now I have an horizontal segmented Picker.
You can't do this with the built-in
Picker, because it doesn't offer a style like that andPickerStyledoesn't let you create custom styles (as of the 2022 releases).You can create your own implementation out of other SwiftUI views instead. Here's what my brief attempt looks like:
Here's the code: