Does anybody know if Compose Canvas API will be fi...
# compose
a
Does anybody know if Compose Canvas API will be fixed anytime soon. Things like this: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/drawscope/CanvasDrawScope#draw(androidx.compose[…]Size,kotlin.Function1) do not make any sense.
z
What specifically doesn’t make sense about that?
a
Custom implementation of Canvas is terrible experience. Canvas functions are duplicated by DrawScope and DrawScopeContext. Funcion
draw
above does not make any sense because is uses two different implementations in the same function. The implementation relies on Canvas
save
functionality that is not explained in the documentation and seems like leaked abstraction based on Skia design.