Sets the insert action for the dynamic view.
- iOS 13.0+
- macOS 10.15+
- Mac Catalyst 13.0+
- tvOS 13.0+
- watchOS 6.0+
- Xcode 11.0+
An array of UTI types that the dynamic view supports.
A closure that SwiftUI invokes when elements are added to the view. The closure takes two arguments: The first argument is the offset relative to the dynamic view’s underlying collection of data. The second argument is an array of
NSItemthat represents the data that you want to insert.
A view that calls
action when elements are inserted into the original view.