Hi,
I have the issue, when navigating from a Form to a List (see sample code below) the List "jumps" once it appeared. Has anybody else encountered this and maybe a solution/workaround? Or is something wrong with the code?
If I remove Text("Other"), it does not jump anymore, but then again I need more than one element in the Form ;-).
Cheers, Michael
import SwiftUI
struct ContentView: View {
var body: some View {
NavigationView {
Form {
Text("Other")
NavigationLink(destination: NextView()) {
Text("to Next View")
}
.navigationBarTitle("Here")
}
}
}
}
struct ContentView_Previews: PreviewProvider {
static var previews: some View {
ContentView()
}
}
// MARK: - NextView -
struct NextView: View {
var body: some View {
List {
Text("A")
Text("B")
Text("C")
}
.navigationBarTitle("There")
}
}