I have a Picker within a Form. I don't want to show any label on this Picker, so I set the label to EmptyView(). Though, the UI still presents an empty space where the label would be. I'm looking for a way to remove this space.
var body: some View {
NavigationView{
Form {
...
Section(header: Text("Emails")){
HStack{
Picker(selection: $phoneType, label: EmptyView()){
ForEach(phoneTypes, id: \.self){
Text($0)
}
}
.pickerStyle(.navigationLink)
Spacer()
Link("[email protected]", destination: URL(string: "mailto:[email protected]")!)
}
Button("Add Email") {}
}
...
}
}
.navigationTitle("John Doe")
}

navigationTitleview modifier to yourForm, not onNavigationView.