# imeNestedScroll

Common/AllAndroid/JVM

## Functions summary

|---|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/Modifier` | `@https://developer.android.com/reference/kotlin/androidx/compose/foundation/layout/ExperimentalLayoutApi https://developer.android.com/reference/kotlin/androidx/compose/ui/Modifier.https://developer.android.com/reference/kotlin/androidx/compose/foundation/layout/imeNestedScroll.modifier#(androidx.compose.ui.Modifier).imeNestedScroll()()` Controls the soft keyboard as a nested scrolling on Android `https://developer.android.com/reference/android/os/Build.VERSION_CODES.html#R` and later. | android |

## Functions

### Modifier.imeNestedScroll

android Artifact: [androidx.compose.foundation:foundation-layout](https://developer.android.com/jetpack/androidx/releases/compose-foundation) [View Source](https://cs.android.com/search?q=file:androidx/compose/foundation/layout/WindowInsetsConnection.android.kt+function:imeNestedScroll)

```
@ExperimentalLayoutApi
fun Modifier.imeNestedScroll(): Modifier
```

Controls the soft keyboard as a nested scrolling on Android `https://developer.android.com/reference/android/os/Build.VERSION_CODES.html#R` and later. This allows the user to drag the soft keyboard up and down.

After scrolling, the IME will animate either to the fully shown or fully hidden position, depending on the position and fling.

```kotlin
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.imeNestedScroll
import androidx.compose.foundation.layout.imePadding
import androidx.compose.foundation.lazy.LazyColumn
import androidx.compose.material3.Text
import androidx.compose.ui.Modifier

LazyColumn(
    modifier =
        Modifier.fillMaxSize() // fill the window
            .imePadding() // pad out the bottom for the IME
            .imeNestedScroll(), // scroll IME at the bottom
    reverseLayout = true, // First item is at the bottom
) {
    // content
    items(50) { Text("Hello World") }
}
```