After doing a lot of digging - it seems like some issue with the tab view and keyboard. When I first click on a keyboard, the onAppear method of every single view contained within the tab view is called, which leads me to think that there is some bug, which tries to render every view in the tab view at the same time when the keyboard is brought up, causing some weird loop.
I tried changing the TabView to use
.tabViewStyle(PageTabViewStyle(indexDisplayMode: .never))
.ignoresSafeArea(.all, edges: .bottom)
the problem does not happen anymore. However, this changes the animation for navigation links inside the tab view, which kind of sucks.
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: