What is the correct way to center a form, but have...
# compose-ios
t
What is the correct way to center a form, but have it scroll up when the keyboard is shown? I found solutions for how to do this on Android, but I need it to work on iOS too.
👍 1
d
We already merged insets to Compose iOS sources. https://github.com/JetBrains/compose-multiplatform-core/pull/577 It is not available in version 1.4.0, and will not be available in 1.4.1 as well. But it will be available later. So, you can use
WindowInsets.ime
for this purpose.
b
Hey @Dima Avdeev , I'd like to test out the code from your pull request in a project. Any chance of getting a dev build published that includes that PR? I have my project setup so I can use local maven repository and the instructions for publishing the compose gradle plugin to local maven are clear. Trying to figure out how to publish compose-runtime w/ your changes to local maven as well.
d
@Brendan Weinstein I think it is already available in 1.5.0-dev1071 dev build
@Brendan Weinstein To publish on mavenLocal, we have 2 instructions: 1. Publish Compose artifacts https://github.com/JetBrains/compose-multiplatform-core/blob/jb-main/MULTIPLATFORM.md#publishing 2. Publish Gradle plugin and additional libraries https://github.com/JetBrains/compose-multiplatform/tree/master/compose#publishing
b
works beautifully -- thank you!