Drag and Drop The New Simpler Way With .draggable and .dropDestination in iOS 16
Daily Coding Tip 131
Tested on Xcode version 14.0 beta 3 (14A5270f).
Previously it was necessary to use a class that conforms to the DropDelegate protocol where data can be dropped after being dragged, but it’s getting simpler now. The .dropDestination modifier provides a handler for a specific type conforming to the new Transferrable protocol.
Many …


