Provides a closure that vends the drag representation to be used for a particular data element.
SDKs
- iOS 13.0+
- macOS 10.15+
- Mac Catalyst 13.0+
- tvOS 13.0+
- watchOS 6.0+
- Xcode 11.0+
Framework
- Swift
UI
Declaration
func itemProvider(_ action: Optional<() -> NSItem Provider?>) -> some View