---
title: "lookaheadScopeCoordinates"
description: "Obtains the [LayoutCoordinates] for the given [LookaheadScope] using a [LayoutCoordinates] within
the [LookaheadScope].

**Important:** This must be an actual [LayoutCoordinates] instance from the [PlacementScope] or
[Modifier] APIs. The Layout that associates with the coordinates needs to be within the subtree
of the [LookaheadScope]. Using a custom [LayoutCoordinates] implementation will result in an
[IllegalArgumentException]."
type: "function"
---

<div class='type'>Function</div>


<a id='references'></a>
<div class='sourceset sourceset-common'>Common</div>


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


Obtains the `LayoutCoordinates` for the given `LookaheadScope` using a `LayoutCoordinates` within
the `LookaheadScope`.

**Important:** This must be an actual `LayoutCoordinates` instance from the `PlacementScope` or
`Modifier` APIs. The Layout that associates with the coordinates needs to be within the subtree
of the `LookaheadScope`. Using a custom `LayoutCoordinates` implementation will result in an
`IllegalArgumentException`.

#### Parameters

| | |
| --- | --- |
| sourceCoordinates | A `LayoutCoordinates` within the subtree of the given `LookaheadScope`. |




