<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "iPadOS: 13.0.0 -",
    "macCatalyst: 13.0.0 -",
    "macOS: 10.15.0 -",
    "tvOS: 13.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 6.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/DynamicViewContent",
  "metadataVersion" : "0.1.0",
  "role" : "Protocol",
  "symbol" : {
    "kind" : "Protocol",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI18DynamicViewContentP"
  },
  "title" : "DynamicViewContent"
}
-->

# DynamicViewContent

A type of view that generates views from an underlying collection of data.

```
protocol DynamicViewContent<Data> : View
```

## Topics

### Managing the data

[`data`](/documentation/SwiftUI/DynamicViewContent/data-swift.property)

The collection of underlying data.

[`Data`](/documentation/SwiftUI/DynamicViewContent/Data-swift.associatedtype)

The type of the underlying collection of data.

### Responding to updates

[`onDelete(perform:)`](/documentation/SwiftUI/DynamicViewContent/onDelete(perform:))

Sets the deletion action for the dynamic view. You must delete the
corresponding item within `action`, as it will be called after the
row has already been removed from the [`List`](/documentation/SwiftUI/List).

[`onInsert(of:perform:)`](/documentation/SwiftUI/DynamicViewContent/onInsert(of:perform:))

Sets the insert action for the dynamic view.

[`onMove(perform:)`](/documentation/SwiftUI/DynamicViewContent/onMove(perform:))

Sets the move action for the dynamic view.

[`dropDestination(for:action:)`](/documentation/SwiftUI/DynamicViewContent/dropDestination(for:action:))

Sets the insert action for the dynamic view.

### Reordering

[`reorderable()`](/documentation/SwiftUI/DynamicViewContent/reorderable())

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

[`reorderable(collectionID:)`](/documentation/SwiftUI/DynamicViewContent/reorderable(collectionID:))

Enables reordering views from this content within and between sections
in the scope of a reorderable container modifier.

### Deprecated symbols

[`onInsert(of:perform:)`](/documentation/SwiftUI/DynamicViewContent/onInsert(of:perform:)-40hwa)

Sets the insert action for the dynamic view.



---

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)