【发布时间】:2020-05-22 11:42:06
【问题描述】:
我在ScrollView里面的TextField,当我选择它的时候,所有的内容都会先向下跳转,然后用键盘返回。
ScrollView {
VStack {
TextField("Placeholder", $value)
Button()
.keyboardResponsive(enabled: true)
}
}
【问题讨论】:
-
能否提供演示代码?
-
我找到了原因。我的屏幕包含带有 keyboardResponsiveEnabled = true 的 Button。
标签: ios swift swiftui scrollview textfield