New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Keyboard disappears on push #201
Comments
Hey @saidReclip, Thanks for reporting this. We're looking into it with high priority. As soon as we have an update, we will let you know. |
Hey @saidReclip, We have fixed the issue, and it's available on the If you have some time, please provide feedback if it solves the issue for you. Best, |
Hey @martinmitrevski , Best, Said |
Thanks for testing @saidReclip, we will look into this case further. |
Hi @martinmitrevski any update on this? |
@jfru I'm still looking into this. I'm trying to find a way to control this from our SDK, but it's challenging since the screen is outside of our SDK, in your app and you're also using a custom swipe gesture. |
hey @saidReclip, can you please update the branch and test again? Now it should be better. Note: if you're not using our default |
Hey @martinmitrevski, we just tested the updated branch, it doesn't seem to solve the problem. we also tried it from inside your demo app, and this is what we saw it exhibits the same problem that we see in our app |
and just to be clear - this is on iOS 16 |
Hey @AndrewSB, This is the maximum that we could do with the keyboard being displayed. It is not possible to keep the keyboard opened in the chat view while you're in swiping back in other screens (at least I couldn't find a way - if you have any ideas I'm open to suggestions). The other approach would be to collapse the view inside the SDK. In that case, you can check the state in your custom gesture and call becomeFirstResponder when the gesture finishes. Let me know your thoughts. |
yeah we'll probably do this. i'll look into if there's another way to keep the keyboard opened, but i know if you've looked you're probably right |
@AndrewSB, @saidReclip This is actually iOS 16 only issue. It's even reproducible with this chunk of code on an empty project: struct ContentView: View {
@State var text = ""
var body: some View {
NavigationView {
VStack {
Spacer()
NavigationLink {
Text("test")
} label: {
Text("Tap me")
}
TextField("", text: $text)
}
.padding()
}
}
} Looking into this. |
I've also created a SO question for this: https://stackoverflow.com/questions/73742103/ios-16-keyboard-safe-area-not-updated-on-push. |
We've fixed this in the SDK's chat header by calling |
gotta love the new OS SwiftUI bugs thanks @martinmitrevski, @saidReclip will give that a shot and we'll close this out if that works 😄 |
@saidReclip, I guess we can close this one. Feel free to reopen it if there's some update needed from SDK's side. |
@martinmitrevski yes, thank you so much. This one is okay now. |
What did you do?
Go to a thread. Activate keyboard. Go to the settings while keyboard is shown. Go back.
What did you expect to happen?
You expect keyboard and composer to be visible.
What happened instead?
Keyboard disappeared. Composer is active.
This bug reproduces on the demo app.
@martinmitrevski this issue is a release blocker for Reclip. @jfru
The text was updated successfully, but these errors were encountered: