Questions tagged «picker»

4
为什么导航后表单中的SwiftUI选择器会重新定位?
单击选择器后,它将导航到选择视图。项目列表的渲染距离顶部太远,但是在动画结束后会迅速对齐。为什么会这样呢? 演示:https : //gfycat.com/idioticdizzyazurevase 我已经创建了一个最小的示例来排除导航栏标题和按钮,表单部分以及其他详细信息: import SwiftUI struct NewProjectView: View { @State var name = "" var body: some View { NavigationView { Form { Picker("Client", selection: $name) { Text("Client 1") Text("Client 2") } } } } } struct NewProjectView_Previews: PreviewProvider { static var previews: some View { NewProjectView() } …
12 ios  forms  swiftui  picker 
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.