Basically I am using Menu Picker Style for display a set of numbers. I prefer it over Menu because it doesn't have checkmark in front of the selected item and because I need to change the text of the menu it takes time to re-render it if the new item is longer than the previous. When using the picker style I get these double arrows which annoy me and so far haven't found solution for them.
struct ContentView: View {
@State private var selection = "Red"
let colors = ["Red", "Green", "Blue", "Black", "Tartan"]
var body: some View {
VStack {
Picker("Select a paint color", selection: $selection) {
ForEach(colors, id: \.self) {
Text($0)
}
}
.pickerStyle(.menu)
Text("Selected color: \(selection)")
}
}
}
I expect it to look something like that. (This photo is taken from normal Menu but as I said before it has more negatives so I don't need it)
you can try as below with Menu it is possible to display the checkmark