You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Issue reopened (#481) since the same problem remains.
Present a ChatChannelView without any messages and a custom empty view with the keyboard up.
Send a message
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.
@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!
Hi @fceldeiro, please make sure the tap area of the empty view is sufficient.
func makeEmptyMessagesView(
for channel:ChatChannel,
colors:ColorPalette)->someView{VStack{Text("Empty message list")}.frame(maxWidth:.infinity, maxHeight:.infinity).contentShape(Rectangle())}
Here is how it looks like.
Scroll to dismiss is only available for the message list which implements it manually. If you would like to have the similar behaviour for the empty view, then the recommendation is to implement it in the custom empty view. Our SDK exposes the resignFirstResponder() method for dismissing the keyboard which can be reused. If you have additional questions, please reach out to us through the technical support channel where we have 1:1 support channels.
What did you do?
Issue reopened (#481) since the same problem remains.
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
The text was updated successfully, but these errors were encountered: