I am unable to change the font size with this snippet. The font is correct and used elsewhere in the swiftui file. The build works successfully, but no matter what font size I choose it appears to stick with a default system size.
private func holeRow(hole: Int) -> some View {
HStack(spacing: 0) {
Text("(hole + 1)")
.font(.custom("Metropolis-SemiBold", size: 12))
.frame(width: 60, height: 25)
.background(Color("PGA_Dark_Cerulean"))
.foregroundColor(.white)
.border(Color.gray, width: 0.25)
Picker("", selection: $parValues[hole]) {
ForEach(3..<6) { value in
Text("(value)")
.font(.custom("Metropolis-SemiBold", size: 12))
.foregroundColor(Color("PGA_Dark_Cerulean"))
.tag(value)
}
}
.pickerStyle(MenuPickerStyle())
.frame(width: 50, height: 25)
.background(Color.white)
.border(Color("PGA_Dark_Cerulean"), width: 0.25)
ForEach(golfers.indices, id: \.self) { golferIndex in
Picker("", selection: $scores[golferIndex][hole]) {
ForEach(1..<11) { value in
Text("\(value)")
.font(.custom("Metropolis-SemiBold", size: 12))
.foregroundColor(Color("PGA_Dark_Cerulean"))
.tag(value)
}