-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
iOS showing Keyboard seems to cause the screen ui issues #4567
Comments
also, not sure if this is something that can be fixed on our side, but pressing the return key does not dismiss the keyboard |
For the UI issue, you can remove the padding on the SwiftUI side. You can achieve this via the Also, to make the keyboard dismissed, you have to set BasicTextField(
singleLine = true,
keyboardOptions = KeyboardOptions(
imeAction = ImeAction.Done,
),
...,
) This was fixed by JetBrains/compose-multiplatform-core#699, and I tried to imitate the behavior of Compose Android. |
Thank you! for us, we want to have a multiline textfield, not a single line, anything we can do ? |
I thought you wanted to dismiss the keyboard, but you can just use multiline TextField, and for multiline TextFields, pressing the return keys means adding a newline character. This is not the issue of Compose Multiplatform for iOS; Jetpack Compose on Android also behaves like that.
Are you implementing part of your view on the Swift side? Compose has
Could you share detailed information about this? There still is a problem with the safe area padding on iPad, but on iPhone everything should work correctly. |
Duplicate of #4016 |
Describe the bug
Simulator.Screen.Recording.-.iPhone.14.-.2024-04-01.at.11.41.36.mov
Affected platforms
Versions
To Reproduce
As shown in video above.
heres the code implementing the keyboard of the video:
heres the code showing how it's being called:
The text was updated successfully, but these errors were encountered: