Type Safely

Type Safely

Drag and Drop The New Simpler Way With .draggable and .dropDestination in iOS 16

Daily Coding Tip 131

Millie Sturgeon's avatar
Millie Sturgeon
Jul 20, 2022
∙ Paid
Photo by 順平 黃 on Unsplash

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 …

User's avatar

Continue reading this post for free, courtesy of Type Safely.

Or purchase a paid subscription.
© 2026 Type Safely · Privacy ∙ Terms ∙ Collection notice
Start your SubstackGet the app
Substack is the home for great culture