https://kotlinlang.org logo
#compose
Title
# compose
m

myanmarking

03/23/2022, 6:06 PM
Why this is not working:
Copy code
background(
    brush = brush
).graphicsLayer(
    shape = shape,
    clip = true
)
It only works when i move the shape to be a background param. Why ? I need a dynamic shape. Graphics Layer better suited
• the clipping isnt happens as is
z

Zach Klippenstein (he/him) [MOD]

03/23/2022, 6:19 PM
Does it work if you swap the order of those modifiers?
k

Kirill Grouchnikov

03/23/2022, 6:20 PM
You need to be more specific about "not working". At least a screenshot that shows how it looks like (and a description of what you expected).
1
m

myanmarking

03/23/2022, 6:20 PM
the clip doesn’t happen*
i’ll try to swap 1s
interesting. @Zach Klippenstein (he/him) [MOD]thanks! idk how did i not try that
z

Zach Klippenstein (he/him) [MOD]

03/23/2022, 6:29 PM
Where do you see a screenshot Kirill?
k

Kirill Grouchnikov

03/23/2022, 6:44 PM
That's what I was saying - to show a screenshot with how it looks like when it's "not working"
z

Zach Klippenstein (he/him) [MOD]

03/23/2022, 8:12 PM
ah yes
2 Views