<h2 id="lookaheadscopecoordinates-sourcecoordinates">lookaheadScopeCoordinates</h2>

<div class='sourceset sourceset-common'>Common</div>

```kotlin
fun LookaheadScope.lookaheadScopeCoordinates(
    sourceCoordinates: LayoutCoordinates
): LayoutCoordinates
```

Obtains the [LayoutCoordinates](/jetpack-compose/androidx.compose.ui/ui/interfaces/LayoutCoordinates) for the given [LookaheadScope](/jetpack-compose/androidx.compose.ui/ui/composable-functions/LookaheadScope) using a [LayoutCoordinates](/jetpack-compose/androidx.compose.ui/ui/interfaces/LayoutCoordinates) within
the [LookaheadScope](/jetpack-compose/androidx.compose.ui/ui/composable-functions/LookaheadScope).

**Important:** This must be an actual [LayoutCoordinates](/jetpack-compose/androidx.compose.ui/ui/interfaces/LayoutCoordinates) instance from the `PlacementScope` or
[Modifier](/jetpack-compose/androidx.compose.ui/ui/interfaces/Modifier) APIs. The Layout that associates with the coordinates needs to be within the subtree
of the [LookaheadScope](/jetpack-compose/androidx.compose.ui/ui/composable-functions/LookaheadScope). Using a custom [LayoutCoordinates](/jetpack-compose/androidx.compose.ui/ui/interfaces/LayoutCoordinates) implementation will result in an
`IllegalArgumentException`.

#### Parameters

| | |
| --- | --- |
| sourceCoordinates | A [LayoutCoordinates](/jetpack-compose/androidx.compose.ui/ui/interfaces/LayoutCoordinates) within the subtree of the given [LookaheadScope](/jetpack-compose/androidx.compose.ui/ui/composable-functions/LookaheadScope). |