Swiftui Form View jump up bug

前端 未结 2 1266
不知归路
不知归路 2021-01-17 19:47

I had a problem when following Raywenderlich Tutorial. The form view will automatically jump upward a little bit every time i clicked an item. Is this a bug

2条回答
  •  失恋的感觉
    2021-01-17 20:26

    If you use a Section Inside of a form, the jumping bug is gone. If you use empty header and footer of a section, it should be look like you do it.

    Form{
           Section(header: Text(""), footer: Text(""), content: {
               Text(...)
               Toggle(...)
           })
        }
    

提交回复
热议问题