79330404

Date: 2025-01-05 08:26:46
Score: 0.5
Natty:
Report link

You can put it in a Menu with a custom label:

Menu {
    Picker("Color Type", selection: $colorStyle) {
        ForEach(ColorStyle.allCases) { style in
            Text(String(describing: style))
        }
    }
} label: {
    HStack(spacing: 5) {
        Text(colorStyle.description)
        Image(systemName: "chevron.up.chevron.down")
    }
}
.labelsHidden()
.border(.green)

enter image description here

Reasons:
  • Probably link only (1):
  • Has code block (-0.5):
Posted by: Andrei G.