I'm curious, is there a way to affect the layout of labels used to build the button that invokes the selection menu for a SwiftUI picker? I'm dissatisfied with the results I'm getting because:
a) The padding between symbol and text seems insufficient.
b) The alignment of symbols between consecutive pickers is ugly.
In the above example image, I'd like the symbols to be a bit more distant from the Circle and Rectangle text. And I'd like the Circle and the Rectangle to be centered to each other (ie look like they are in the same column).
The image comes from the following code:
struct PickerLayout: View {
@State private var first = "circle"
@State private var second = "rectangle"
var body: some View {
Form {
Picker("First Shape", selection: $first) {
Label("Circle", systemImage: "circle").tag("circle")
Label("Rectangle", systemImage: "rectangle").tag("rectangle")
}
Picker("Second Shape", selection: $second) {
Label("Circle", systemImage: "circle").tag("circle")
Label("Rectangle", systemImage: "rectangle").tag("rectangle")
}
}
}
}

