is there currently a way to render/draw your own u...
# compose
m
is there currently a way to render/draw your own ui elements / composables (analog to creating a custom view on android and writing your own logic within
onDraw
)?
a
Copy code
Canvas { // DrawScope
   drawPoint(...)
}
there’s no
DrawScope.drawText
yet though
m
thanks for the hint @allan.conda, I can’t find any documentation on the API, do you happen to know where I can find it?
m
that’s what I was looking for, thanks ❤️
I hope that custom composables will be supported by KMMP
would be neat
n
There are a few different versions of DrawModifiers that expose a lambda with a DrawScope recevier that you can use to issue drawing calls.
Modifier.drawBehind, Modifier.drawWithContent, Modifier.drawWithCache
are a few examples
z
I hope that custom composables will be supported by KMMP
Every composable function you write is a custom composable 😉
👍 1