🌈 Create new beautiful Compose Gradients with our new wesite ->
Function

constrainDepth

Constrains a given depth value to fit within the bounds of this VolumeConstraints object.

constrainDepth

Source set: Android
public fun VolumeConstraints.constrainDepth(depth: Int): Int

Constrains a given depth value to fit within the bounds of this VolumeConstraints object.

Parameters

depth the depth value to constrain.

Return

the constrained depth value, ensuring it's within the minimum and maximum depth bounds.

Content updated: