GetStream / stream-chat-swiftui

SwiftUI Chat SDK ➜ Stream Chat 💬
https://getstream.io/chat/sdk/swiftui/
Other
332 stars 80 forks source link

Not possible to dismiss keyboard when coming from empty state - Reopened #546

Open fceldeiro opened 1 month ago

fceldeiro commented 1 month ago

What did you do?

Issue reopened (https://github.com/GetStream/stream-chat-swiftui/issues/481) since the same problem remains.

1) Present a ChatChannelView without any messages and a custom empty view with the keyboard up. 2) Send a message 3) Trying to dismiss the keyboard swiping down doesn't work.

What did you expect to happen?

Swipe down to dismiss the keyboard should work

What happened instead?

Nothing It seems that the flag @State private var keyboardShown = false in MessageListView when switching from empty remains false which doesn't trigger the dismiss logic.

GetStream Environment

GetStream Chat version: 4.59.0 GetStream Chat frameworks: StreamChat, StreamChatSwiftUI iOS version: 17.5 Swift version: 5+ Xcode version: 15.4 Device: iPhone 15 Pro

Additional context

laevandus commented 1 month ago

@fceldeiro thank you for reporting. We'll take another look on the swipe down. Could you please confirm if tap to dismiss works now in this particular case. Thank you!

fceldeiro commented 2 weeks ago

Hello @laevandus , no. It doesn't work (either case) retested again in version 4.62.0