Hello, I want to add drag and drop to compose and ...
# compose-ios
r
Hello, I want to add drag and drop to compose and I think iOS is missing the platform implementation of
actual class DragAndDropTransferData
is this correct?
e
That’s right. Drag-n-drop on iOS is postponed due to its requirements to break existing common API.
But it’s implemented and functioning already, so no worries 🙂
r
Thanks for getting back to me, is there an ETA or an alpha I can use?
e
Afaik, not earlier than 1.8, no alpha due to breaking API.
👍 1
r
Do you know the state for Desktop? Here it says there is an initial support but it seems to drag and drop between windows, not from one lazy list to another.
e
cc @Alexander Maryanovsky
a
Drag-and-drop is an overloaded term, unfortunately. It can mean just the basic gesture of dragging and dropping something, or the feature where you can transfer data between applications by using the gesture. The PR you linked, and the corresponding API is about the latter. Of course you can use it to transfer data inside your app too, but it’s fairly limited for that purpose.
r
Thank you for your time, I appreciate it. You are right, let me reformulate the question, I am looking for drag and drop support between lazy lists, what is the status of this on Desktop, will it arrive with iOS or is it in the backlog?
a
There’s no such feature planned. You can implement it yourself with a bit of work, though.
e
I think I’ve seen some libraries doing this specifically
No special platform API is needed for that indeed
a
The gesture detector is already implemented and working, but showing the object while it’s being dragged, and “receiving” it on the other end is up to you.
r