Post

Replies

Boosts

Views

Activity

Reply to SwiftUI Dismiss keyboard in modal issue
I found solution var body: some View {         GeometryReader { _ in //your view             } .ignoresSafeArea(.keyboard, edges: isKeyboardVisible ? .top : .bottom) } For detecting if keyboard is visible or not you can use any solution that you like. as example https://stackoverflow.com/questions/65784294/how-to-detect-if-keyboard-is-present-in-swiftui
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Jan ’23
Reply to SwiftUI Dismiss keyboard in modal issue
I found solution var body: some View {         GeometryReader { _ in //your view             } .ignoresSafeArea(.keyboard, edges: isKeyboardVisible ? .top : .bottom) } For detecting if keyboard is visible or not you can use any solution that you like. as example https://stackoverflow.com/questions/65784294/how-to-detect-if-keyboard-is-present-in-swiftui
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jan ’23