Drag and Drop using SwiftUI

Overview

I am bit confused regarding drag and drop on SwiftUI I think there are 2 approaches but I am stuck with both approaches

WWDC22

  • When using the new draggable, dropDestination, Transferable API, only single items are draggable. Multiple items in a list are not draggable. I have filed a feedback FB10128110

WWDC21

  • I have faced a couple of issues for drag and drop introduced in WWDC21 (onDrag, onDrop, itemIdentifier), the Feedback ids are FB9854301, FB9854569, FB9855245, FB9855532, FB9855567, FB9855575. It contains sample projects, would really appreciate if someone could have a look it.

Note: All feedbacks include a sample project with detail steps and some even have screenshots and videos

Questions:

If my approach is wrong or if I am missing something?

Unfortunately I didn't manage to get a SwiftUI lab session (got cancelled), so please help me with these issues.

Post not yet marked as solved Up vote post of new_bee Down vote post of new_bee
211 views