<div class='type'>Compose Modifier</div>

<a id='references'></a>


<h2 id="drawwithcontent-ondraw">drawWithContent</h2>

<div class='sourceset sourceset-common'>Common</div>


```kotlin
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.