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 …

Keep reading with a 7-day free trial

Subscribe to Type Safely to keep reading this post and get 7 days of free access to the full post archives.

Already a paid subscriber? Sign in
© 2025 Type Safely
Privacy ∙ Terms ∙ Collection notice
Start your SubstackGet the app
Substack is the home for great culture