drag and drop

Asked on 06/19/2025

1 search

Drag and Drop in WWDC Sessions

Drag and drop is a recurring theme in several sessions at WWDC, highlighting its importance in creating interactive and accessible user experiences across different Apple platforms.

  1. Accessibility in SwiftUI: The session "Catch up on accessibility in SwiftUI" discusses how drag and drop can be made accessible using SwiftUI. It emphasizes the use of onDrag and onDrop modifiers to create accessible experiences, and how custom drop delegates can support multiple drop points on a single view. This is particularly useful for enhancing accessibility technologies like VoiceOver and Voice Control. You can learn more about these enhancements in the Enhanced interactions chapter.

  2. Spatial Web: In the session "What’s new for the spatial web," drag and drop is used to interact with 3D models. Users can drag models to view them in their space through Quick Look, allowing for realistic lighting effects and size adjustments. This interaction is part of the default user interactions for 3D models.

  3. SwiftUI Enhancements: The session "What’s new in SwiftUI" introduces major enhancements to drag and drop, including the ability to drag multiple items using new modifiers like draggable and dragContainer. This allows for more complex interactions and custom selection behaviors in apps. For more details, check the Expand SwiftUI views chapter.

  4. iPadOS Tabs and Sidebars: In "Elevate your tab and sidebar experience in iPadOS," tabs are highlighted as drop destinations, allowing for direct additions into tabs through drag and drop. This is supported by the dropDestination modifier in SwiftUI. You can explore this feature in the Drop destinations on Tabs in SwiftUI chapter.

These sessions collectively demonstrate how drag and drop is being integrated and enhanced across Apple's ecosystem, providing developers with powerful tools to create more interactive and accessible applications.