Hi, I have several tiles (<roundedcornershape>) that I can move around. Is there a way of making the...
n
Hi, I have several tiles (roundedcornershape) that I can move around. Is there a way of making them solid, so that I can't drag one over another?
h
What you are asking for sounds like simple collision detection. I don't think you'd find a built-in solution for that but compose offers loads of modifiers and layout options that might help you. At the end of the day, your collision-detection algorithm should define the constraints of how you can drag an item.
👍 1
n
Yeah, I need to study the whole constraints doc for the purpose of my app anyway. So that makes sense!
h
it's very intuitive and docs are great. I would also recommend you to read some of the built-in drag-gestures' codes.
n
Cheers, will do!