# drawWithContent

Common/All

## Functions summary

|---|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/Modifier` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/Modifier.https://developer.android.com/reference/kotlin/androidx/compose/ui/draw/drawWithContent.modifier#(androidx.compose.ui.Modifier).drawWithContent(kotlin.Function1)(onDraw: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/drawscope/ContentDrawScope.() -> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html)` Creates a `https://developer.android.com/reference/kotlin/androidx/compose/ui/draw/DrawModifier` that allows the developer to draw before or after the layout's contents. | Cmn |

## Functions

### Modifier.drawWithContent

Cmn Artifact: [androidx.compose.ui:ui](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/draw/DrawModifier.kt+function:drawWithContent) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.0.0)

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

Creates a `https://developer.android.com/reference/kotlin/androidx/compose/ui/draw/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.