5

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!

1

1 Answer 1

2

According to an Apple Engineer:

That's not built-today, though you can use the View.onDrag(_:) and View.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?

Sign up to request clarification or add additional context in comments.

2 Comments

It's funny how all of these questions you mentioned are mine haha. I have tried this, I didn't succeed, however, Asperi has, see stackoverflow.com/questions/62606907/…
Haha! 😁 Thanks for the link!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.