Skip to content
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

conflict with keyboard opening on a navigation view #105

Open
phherran-oskey opened this issue Nov 27, 2024 · 3 comments
Open

conflict with keyboard opening on a navigation view #105

phherran-oskey opened this issue Nov 27, 2024 · 3 comments

Comments

@phherran-oskey
Copy link

While developing a help center on an iOS app, I am trying to integrate Crisp in a Navigation view instead of a modal, and when pressing chat textfield, the opening of the keyboard causes the whole interface to be pushed up to the top of the view.

struct MyView: View {
    @Environment(\.presentationMode) var presentationMode
    var body: some View {
        VStack {
            ZStack {
                HStack {
                    Button {
                        presentationMode.wrappedValue.dismiss()
                    } label: {
                        Text("Back")
                    }
                    Spacer()
                }
                Text("ChatView") 
            }
            ChatView()       
        }      
    }
}
@ARFAOUI
Copy link

ARFAOUI commented Nov 27, 2024

39558dd23bbdaaaf9f300db6691d2bdd23ecb698.mov

I'm Experiencing the same issue even with a model view.

@nesium
Copy link
Collaborator

nesium commented Dec 2, 2024

Hi @phherran-oskey & @ARFAOUI.

Are you using the ChatView provided by the Crisp SDK? Because I've seen this issue when the ChatViewController was wrapped in a UIViewControllerRepresentable.

@phherran-oskey
Copy link
Author

It is not in a UIViewControllerRepresentable, I am just integrating it in a specific View in order to push it in a NavigationView.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants