I am trying to display PickerView in WheelStyle inside form. It's working fine but there is some leading space that I would like to review.
Here is my code.
struct FormTest: View {
var aryStrings = ["Male","Female"]
@State var selected:String = ""
var body: some View {
Form {
Section {
VStack {
HStack {
Text("Gender")
Spacer()
}.padding()
HStack {
Picker(selection: self.$selected, label: Text("")) {
ForEach(self.aryStrings, id:\.self) { value in
Text(value)
}
}.pickerStyle(WheelPickerStyle())
}
}.listRowInsets(EdgeInsets())
}
}
}
}
Here as we can see there is a leading space which is marked as red. I want that to be full size picker.
Any help will be appreciated.



