Compose API Reference Compose UI Unit constrainHeight Function Common fun Constraints.constrainHeight(height: Int) = height.fastCoerceIn(minHeight, maxHeight) Takes a height and returns the closest size to it that satisfies the constraints.
Compose API Reference Compose UI Unit constrainHeight Function Common fun Constraints.constrainHeight(height: Int) = height.fastCoerceIn(minHeight, maxHeight) Takes a height and returns the closest size to it that satisfies the constraints.