Activates the view as the source of a drag and drop operation.
- iOS 13.0+
- macOS 10.15+
- Mac Catalyst 13.4+Beta
- Xcode 11.0+
A closure that returns a single
NSItemthat represents the draggable data from this view.
A view that activates this view as the source of a drag and drop operation, beginning with user gesture input.
on modifier adds the appropriate gestures for drag and drop to this view. When a drag operation begins, a rendering of this view is generated and used as the preview image.