EPISODE · Jun 12, 2026 · 6 MIN
Code-along: Build powerful drag and drop in SwiftUI
from Podkey WWDC 2026
A Podkey summary of Code-along: Build powerful drag and drop in SwiftUI, from WWDC 2026.Today’s thread is SwiftUI drag and drop, and really, how Apple’s newer APIs make something fiddly feel surprisingly clean. The big ideas are making your model transferable, using reorderable and reorderContainer to get built-in movement across lists, and then layering in the game rules so a drag behaves like a real move instead of a sloppy copy. The example running through all of this is Solitaire, which is perfect because it’s simple to picture and unforgiving when the rules are wrong.Making data draggable with TransferableWhat reorderable gives you for freeReordering across multiple pilesDragging multiple cards togetherShaping the drag previewMove versus copy actually mattersKeeping face-down cards out of itWhy unique identifiers matter across sectionsEnforcing game rules at drop timeThis podcast was created with Podkey. Make your own at https://podkey.fm
NOW PLAYING
Code-along: Build powerful drag and drop in SwiftUI
No transcript for this episode yet
Similar Episodes
May 14, 2026 ·360m
May 14, 2026 ·310m
May 14, 2026 ·205m
May 14, 2026 ·85m
May 14, 2026 ·282m