I'm building a SwiftUI view with draggable content, with a custom NSItemProviderWriting class to provide one type of data for when dragged into anothe ...
I'm building a SwiftUI view with draggable content, with a custom NSItemProviderWriting class to provide one type of data for when dragged into anothe ...
I have implemented function that returns NSItemProvider and I have use it this way: This drag&drop action performs file MOVE action to any p ...
In order to support a custom paste behaviour, In my UITextView, which I set as its own UITextPasteDelegate in awakeFromNib(), I implemented textPasteC ...
In iOS 11 Apple introduced it's drag and drop APIs to the OS (principally to support dragging between apps on iPadOS) via the NSItemProvider class and ...
I'm using a PHPickerViewController to allow the user to select a media item from their library. And the specific case of interest is when they select ...
I'm trying to implement a simple drag and drop with NSString. I can get this working with NSURL but not NSString. Every time I try the drag and drop I ...
I have a collection view that displays data arranged in a custom data model (struct) called "claimData." claimData declaration: I share the state ...
I have reviewed some questions on Stack Overflow about drag and drop reorder with SwiftUI, and this one was particularly helpful: SwiftUI | Using onDr ...
My share extension for macOS takes image or video files. I'd like to be able to access the filename (or path) for the NSItemProvider object. I've fi ...