Open pushpalroy opened 1 year ago
In iOS, the window will automatically move if the focused element is obscured by the software keyboard. But we can not disable it. This is a problem on the Compose Multiplatform side, and I could not come up with a workaround. https://github.com/JetBrains/compose-multiplatform/issues/3128
Therefore, the ime-related API is experimental.
Thanks, @mori-atsushi. Is there any workaround for now, till there is no proper solution from Compose Multiplatform?
@pushpalroy Currently I don't know of any workaround. In iOS, it may be better to use the default behavior instead of using ime insets.
I want to keep the
AppBar
fixed and scroll up the screen/list when the keyboard opens. I want to do this when aTextField
is clicked.So I have added the following:
In the
Scaffold
:And in the
TextField
:In Android, it's looking good and I'm able to achieve the desired behavior.
But, in iOS, the following are observed, when the keyboard opens:
Please find the screenshot of the comparison, when run in simulators:
Left - Android Right - iOS