Is it possible to reorder the items inside the LazyVGrid using drag and drop?
Like something similar to the Editmode when using a List together with .onMove()?
Thanks!
Is it possible to reorder the items inside the LazyVGrid using drag and drop?
Like something similar to the Editmode when using a List together with .onMove()?
Thanks!
According to an Apple Engineer:
That's not built-today, though you can use the
View.onDrag(_:)
andView.onDrop(...)
to add support for drag and drop manually.Do file a feedback request if you'd like to see built-in reordering support. Thanks!
So unfortunately we are on our own here. :/
Have you tried this? SwiftUI | Using onDrag and onDrop to reorder Items within one single LazyGrid?