Compose Unstyled 2.0 is out! Check the official announcement blog ->
Function

depth

Declare the preferred size of the content to be exactly depth dp along the z dimension of the Composable's local coordinate space.

depth

Source set: Android
public fun SubspaceModifier.depth(depth: Dp): SubspaceModifier

Declare the preferred size of the content to be exactly depth dp along the z dimension of the Composable's local coordinate space.

Parameters

depth preferred depth in Dp.

Last updated: