I saw compose added `Modifier.blur()` api, but it ...
# compose
r
I saw compose added
Modifier.blur()
api, but it only can blur the content, is there any way to blur the background like this library? https://github.com/mmin18/RealtimeBlurView
c
Have a look at https://developer.android.com/reference/kotlin/androidx/compose/ui/draw/package-summary#(androidx.compose.ui.Modifie[…]WithContent(kotlin.Function1)
DrawWithContent
So you could in theory do DrawWithContent, and then either do it with the canvas or create a random gradient or whatever other blur implementation you want. The important thing is you can control the Z axis of drawing.