Post

Replies

Boosts

Views

Activity

Reply to Disable keyboard avoidance for SwiftUI view
My workaround is placing a GeometryReader as the root View, within the body of whatever View needs to ignore the keyboard. I believe this works because the GeometryReader will expand to fill the entire area it's contained within, ignoring safe area insets in the process. I can confirm this works when GeometryReader is the root View in a presented sheet, as well as the root view within an individual tab of a TabView.
Mar ’21