I want to move entries in a List between Sections. The .onMove()
modifier does not work between sections, so I figured I could use normal drag and drop.
I found a good example on how to do this between two Lists, but since I don’t want to drag between two Lists, but between the Sections, the Example does not work.
I tried to modify the example to not have two separate Lists in a Stack. Now when I try to insert my element into another section, .onInsert()
is always called on the section where I dragged it from, no matter where I drop it. Is this simply a limitation of SwiftUI or am I missing something?
Any advice on better solutions for this is also very much appreciated. Thanks in advance