by @alexstyl
✉️ Leave your feedback

← Back to Compose UI

onPositioned

Modifier
in
Compose UI
. Since 0.1.0-dev15

Overview

Examples

Community Notes

Invoke onPositioned with the LayoutCoordinates of the element after positioning. Note that it will be called*after** a composition when the coordinates are finalized.

Usage example:

Overloads

onPositioned

fun Modifier.onPositioned(
    onPositioned: (LayoutCoordinates) -> Unit
)
Next ComponentAndroidView