clip

Compose Modifier

Common
fun Modifier.clip(shape: Shape) = graphicsLayer(shape = shape, clip = true)

Clip the content to shape.

Parameters

shapethe content will be clipped to this Shape.