Compose Modifier

drawWithContent

Creates a DrawModifier that allows the developer to draw before or after the layout's contents.

drawWithContent

Source set: Common

Added in 1.11.0-rc01

fun Modifier.drawWithContent(onDraw: ContentDrawScope.() -> Unit): Modifier

Creates a DrawModifier that allows the developer to draw before or after the layout's contents. It also allows the modifier to adjust the layout's canvas.

Last updated: