Using: @Model class Object: Observable, Transferable
TableRow(object)
.draggable(object)
.dropDestination(for: Object.self) { _ in return }
(with or without the "return") is the only .dropDestination syntax that compiles for me. Specifying the single return argument as
(droppedItems:[Account])
is tolerated
Using "return true" or expecting two returned items does not compile. I suspect the single returned item is the dropped items array, seems fair as "location" is not needed when using a TableRow. This is different behavior than all the docs and examples I've seen.
My Object is Codable and Transferable. A row can be dragged and a destination row highlights on hover-with-payload, but on drop I get a spinning wheel even though I've not specified any action yet. The action closure is not entered, even a simple print() statement is not reached.
I'd appreciate any thoughts on what might be the problem here. Debugger tips welcome, too.
swift-driver version: 1.90.11.1 Apple Swift version 5.10 (swiftlang-5.10.0.13 clang-1500.3.9.4) Target: arm64-apple-macosx14.0