Currently I've a picker
included in a Section
included in a Form
what I'm trying to reach is to align the selected value of the picker
to the leading in both iOS 13 and 14, I've tried many solutions such as labelsHidden()
but with no result, kindly find the code sample that generates the following screenshot on iOS 14, any help would be appreciated
struct ContentView: View {
@State private var selectedStrength = "Mild"
let strengths = ["Mild", "Medium", "Mature"]
var body: some View {
NavigationView {
Form {
Section {
Picker("", selection: $selectedStrength) {
ForEach(strengths, id: \.self) {
Text($0)
}
}
}
}
}
}
}
Picker
inside aForm
... – MoleskinsForm
is necessary in this case – Hut