Posts

Post not yet marked as solved
2 Replies
1.6k Views
Has anyone else noticed issues with the top insets while transitioning to forms? During the animation, the form includes a margin above the first section, but as soon as the transition completes, the margin is removed. The layout is correct after the animation, so it appears to be an issue of the form not knowing its layout before the animation begins. At least for me, the behaviour can be reproduced with the single view app template, then the following two views:struct ContentView: View { var body: some View { NavigationView { List { NavigationLink(destination: FormView()) { Text("Hello, World!") } } } } } struct FormView: View { @State var name: String = "" var body: some View { List { TextField("Name", text: $name) } } }
Posted Last updated
.