<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "macCatalyst: 27.0.0 -",
    "macOS: 27.0.0 -",
    "visionOS: 27.0.0 -",
    "watchOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/DynamicViewContent/reorderable()",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI18DynamicViewContentPAAE11reorderableQryF"
  },
  "title" : "reorderable()"
}
-->

# reorderable()

Enables reordering of views from this content inside the scope of a
reorderable container modifier.

```
nonisolated func reorderable() -> some DynamicViewContent<Self.Data>
```

## Discussion

Declare this modifier on [`DynamicViewContent`](/documentation/SwiftUI/DynamicViewContent) within a reorderable
container to allow people to reorder the items in the content using a
system drag gesture. A reorderable container is a list, stack, grid,
or custom layout that you define with the
[`reorderContainer(for:in:isEnabled:move:)`](/documentation/SwiftUI/View/reorderContainer(for:in:isEnabled:move:)) modifier.

Use this modifier when you have a single collection in the container.
If your container has multiple collections, use
`DynamicViewContent/reorderable(collectionid:)` instead.

The following example shows a list of landmark views that a person can
move to reorder inside the [`VStack`](/documentation/SwiftUI/VStack):

```
struct ContentView: View {
    @State private var landmarks: [Landmark] = []

    var body: some View {
        VStack {
            ForEach(landmarks) { landmark in
                LandmarkView(landmark)
            }
            .reorderable()
        }
        .reorderContainer(for: Landmark.self) { difference in
            apply(difference: difference)
        }
    }
}
```

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)