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
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(...)
})
}
Workaround
By my findings it looks like Form
layout issue, thus as a temporary solution the following workaround someone might find applicable:
Form {
TextField("Name", text:$task.name)
Toggle("Completed", isOn: $task.completed)
}
.navigationBarTitle("", displayMode: .inline) // !!!