<h2 id="depthin-min-max">depthIn</h2>

<div class='sourceset sourceset-android'>Android</div>

```kotlin
public fun SubspaceModifier.depthIn(
    min: Dp = Dp.Unspecified,
    max: Dp = Dp.Unspecified,
): SubspaceModifier
```

Constrain the depth of the content to be between [min](/jetpack-compose/androidx.compose.remote/remote-creation-compose/functions/min)dp and [max](/jetpack-compose/androidx.compose.remote/remote-creation-compose/functions/max)dp as permitted by the incoming
measurement constraints. If the incoming constraints are more restrictive the requested size will
obey the incoming constraints and attempt to be as close as possible to the preferred size.

#### Parameters

| | |
| --- | --- |
| min | The minimum depth. |
| max | The maximum depth. |