I am currently using SwiftUI s Picker API, and would like to increase the Picker row s height. The reason for this is when text has a bigger font, the items overlap.
I am trying to avoid using UIPickerView + UIViewRepresentable if possible & would like to achieve this using purely SwiftUI if possible.
我尝试使用<条码>航天器条码>、<条码> pa>/条码>和<条码>(>>>>>,但截至目前为止未加列。
我知道这一特征已经在监控系统上提供,但是在进入现场时是否有任何替代办法?
我附上了上述问题的基本皮条。 提前感谢。
struct ContentView: View {
@State private var selectedNum = 0
var body: some View {
Picker("", selection: self.$selectedNum) {
Text("1").font(.system(size: 80))
Text("2").font(.system(size: 80))
Text("3").font(.system(size: 80))
Text("4").font(.system(size: 80))
Text("5").font(.system(size: 80))
Text("6").font(.system(size: 80))
}
.pickerStyle(.wheel)
}
}
这是法典的结果。