<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/swiftui-drag-and-drop-in-just-2-steps-tzkhxsf0d" -->

---
title: SwiftUI drag and drop in just 2 steps | daily.dev
description: A new reorderable API in SwiftUI enables drag and drop reordering with just two modifiers: applying reorderable to the ForEach containing the items and...
canonical: https://daily.dev/posts/swiftui-drag-and-drop-in-just-2-steps-tzkhxsf0d
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: SwiftUI drag and drop in just 2 steps | daily.dev
og:description: A new reorderable API in SwiftUI enables drag and drop reordering with just two modifiers: applying reorderable to the ForEach containing the items and...
og:url: https://daily.dev/posts/swiftui-drag-and-drop-in-just-2-steps-tzkhxsf0d
og:image: https://api.daily.dev/og/posts/tZKHXSf0d.png
og:image:alt: SwiftUI drag and drop in just 2 steps
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# SwiftUI drag and drop in just 2 steps

**[Apple Developer](https://daily.dev/sources/appledeveloper)** · 1 min read · 1 upvotes · 0 comments

## Summary

A new reorderable API in SwiftUI enables drag and drop reordering with just two modifiers: applying reorderable to the ForEach containing the items and reorderContainer to the surrounding layout. A demo shows reordering playing cards, with additional customization APIs available, further explored in a full video building a solitaire game.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://www.youtube.com/watch?v=Yruc5vFyQUI>

## Questions this post answers

### How do I implement drag and drop reordering in SwiftUI?

Apply the reorderable modifier to the ForEach view containing the items you want to reorder, then apply the reorderContainer modifier to the layout that contains those items. This new API lets users drag items, such as a card, from one position to another within the list, and additional APIs exist for further customizing the drag behavior.

_Developers wiring up SwiftUI interactions can track new API patterns like this one on daily.dev._

## Similar posts on daily.dev

- [What is new in SwiftUI after WWDC26](https://daily.dev/posts/what-is-new-in-swiftui-after-wwdc26-km1yihp3o) · Swift with Majid · 0 upvotes · 0 comments

---

Tags: [#ios](https://daily.dev/tags/ios), [#swift](https://daily.dev/tags/swift), [#swiftui](https://daily.dev/tags/swiftui)

[View this post on daily.dev](https://daily.dev/posts/swiftui-drag-and-drop-in-just-2-steps-tzkhxsf0d)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"SwiftUI drag and drop in just 2 steps","url":"https://daily.dev/posts/swiftui-drag-and-drop-in-just-2-steps-tzkhxsf0d","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/swiftui-drag-and-drop-in-just-2-steps-tzkhxsf0d"},"datePublished":"2026-08-26T23:09:54.601Z","dateModified":"2026-09-14T07:32:21.861Z","description":"A new reorderable API in SwiftUI enables drag and drop reordering with just two modifiers: applying reorderable to the ForEach containing the items and...","image":"https://i.ytimg.com/vi/Yruc5vFyQUI/sddefault.jpg","thumbnailUrl":"https://i.ytimg.com/vi/Yruc5vFyQUI/sddefault.jpg","isAccessibleForFree":true,"articleSection":"Apple Developer","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Apple Developer","logo":"https://media.daily.dev/image/upload/s--CAtMViBl--/f_auto/v1711726806/logos/appledeveloper","url":"https://daily.dev/sources/appledeveloper"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/swiftui-drag-and-drop-in-just-2-steps-tzkhxsf0d","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":1},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"ios,swift,swiftui","timeRequired":"PT1M","video":{"@type":"VideoObject","name":"SwiftUI drag and drop in just 2 steps","description":"A new reorderable API in SwiftUI enables drag and drop reordering with just two modifiers: applying reorderable to the ForEach containing the items and...","thumbnailUrl":"https://i.ytimg.com/vi/Yruc5vFyQUI/sddefault.jpg","uploadDate":"2026-08-26T23:09:54.601Z","duration":"PT1M","url":"https://api.daily.dev/r/tZKHXSf0d","embedUrl":"https://www.youtube.com/embed/Yruc5vFyQUI"}}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Apple Developer","item":"https://daily.dev/sources/appledeveloper"},{"@type":"ListItem","position":3,"name":"SwiftUI drag and drop in just 2 steps"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/swiftui-drag-and-drop-in-just-2-steps-tzkhxsf0d#faq","mainEntity":[{"@type":"Question","name":"How do I implement drag and drop reordering in SwiftUI?","acceptedAnswer":{"@type":"Answer","text":"Apply the reorderable modifier to the ForEach view containing the items you want to reorder, then apply the reorderContainer modifier to the layout that contains those items. This new API lets users drag items, such as a card, from one position to another within the list, and additional APIs exist for further customizing the drag behavior. Developers wiring up SwiftUI interactions can track new API patterns like this one on daily.dev."}}]}
```

