SwiftUI-Code-Examples icon indicating copy to clipboard operation
SwiftUI-Code-Examples copied to clipboard

Adding .scrollDismissesKeyboard(.interactively) results in weird TextField behavior

Open iband opened this issue 2 years ago • 1 comments

When you attach TextField to keyboard like that: https://github.com/NilCoalescing/SwiftUI-Code-Examples/blob/23acc112d124508690fa8c5edfad53f87a20bde7/PinAViewToTheBottomOfSafeArea/PinAViewToTheBottomOfSafeArea.swift#L17 TextField is not interactively dismissed with keyboard (example of the issue on stack overflow: https://stackoverflow.com/questions/73770425/scrollview-scrolldismisseskeyboard-interactively-feels-weird).

Is there a way to achieve behavior like in iMessage with SwiftUI?

iband avatar Feb 15 '23 09:02 iband

I wonder if there are any changes to this in iOS 17? I looks like we have a few new customizations for UIKit, but not SwiftUI 🤔

iband avatar Jun 17 '23 22:06 iband