I came across the same issue, but cannot solve it by adding .navigationViewStyle(.stack).
Instead, I switched from NavigationView to NavigationStack and got the issue solved.
PS. I am working on iOS 16+ and SwiftUI 5.7
Post
Replies
Boosts
Views
Activity
I stuck on the same issue in a sheet.
Found a solution, it works well for me.
https://stackoverflow.com/questions/56491881/move-textfield-up-when-the-keyboard-has-appeared-in-swiftui/60178361#60178361