I am attempting to customize the font size of the two tags inside the Picker. I am using the SegmentedPickerStyle and I would like the Picker font size to match Text size of the other titles/strings that I am using on my form. The other fonts are using .font(.headline)
var body: some View {
NavigationView {
ScrollView {
VStack(alignment: .leading){
Group {
Picker("", selection: $form.nameType) {
Text("First/Last name \(form.nameType == 0 ? "*" : "")").tag(0)
Text("Company name \(form.nameType == 1 ? "*" : "")").tag(1)
}
.pickerStyle(SegmentedPickerStyle())
}
}
}
}
}