How to drag multiple items in a list

I have a list containing multiple cells.

How to drag the selected items?

struct FolderDetail: View {
    let folder: Folder?
    @ObservedObject var dataStore: DataStore

    @State private var selectedCarIDs = Set<Int>()

    var body: some View {
        if let folder {
            List(dataStore.cars[folder.id] ?? [], selection: $selectedCarIDs) { car in
                Text(car.name)
                    .tag(car.id)
                    .draggable(car.name)
            }

        } else {
            Text("no folder selected")
        }
    }
}

Hi, did you find a solution for this?

@Iomegan

For the Mac the issue still exists, iOS works. I have filed a feedback.

In case you want to use it on the Mac you could NSItemProvider API, these APIs are older and in my humble opinion that in the future Transferable APIs would gain more capabilities

How to drag multiple items in a list
 
 
Q