How to hide the image icon in the selector preview but show it with the selector open (Swiftui)

36 Views Asked by At

How to hide the image icon in the selector preview but show it with the selector open?

Actual picker style

Actual code

Picker("method", selection $method) {
  Label {
    Text("cash")
  } icon: {
    Image(systemName: "dollarsign.circle.fill")
  }.tag(cash)
}.pickerStyle(.menu).frame(maxWidth: .infinity, alignment: .trailing)

I read the documentation but not found any solutions https://developer.apple.com/documentation/swiftui/picker

0

There are 0 best solutions below