Adds an action to perform in response to the system’s Paste command.
SDKs
- macOS 10.15+
- Xcode 11.0+
Framework
- Swift
UI
Declaration
func onPasteCommand(of supportedTypes: [String], perform payloadAction: @escaping ([NSItem Provider]) -> Void) -> some View