Skip to main content
Filter by
Sorted by
Tagged with
2 votes
0 answers
141 views

I am trying to support dragging out a 'file' object from my app into Finder, on macOS. I have my object conform to Transferable and the files are saved on disk locally, so. I just want to pass it the ...
Z S's user avatar
  • 7,577
0 votes
1 answer
62 views

When registering a file representation to NSItemProvider for a SwiftUI view and calling the completionHandler of the registerFileRepresentation method with a nil argument for the URL, the next time an ...
Yakuhzi's user avatar
  • 1,299
-2 votes
1 answer
36 views

When I get some images of Photos in iPhone device using NSItemProvider by PHPickerViewController, I want to know how to check same file(image) with picked photos. Because I use NSItemProvider, the ...
strawnut's user avatar
  • 405
2 votes
0 answers
160 views

I have a SwiftUI list that can receive dropped images. I want it to support file promises to get full-resolution images from the Photos app (on macOS, though presumably similar on iOS). Here's a ...
Dejal's user avatar
  • 873
1 vote
0 answers
796 views

I have a function to import images from an array of NSItemProvider (passed from a PHPickerViewController) and I need to maintain transparency in the images. Any images in PNG format are correctly ...
stackunderflow's user avatar
3 votes
2 answers
1k views

I have implemented function that returns NSItemProvider func dragOutsideWnd(url: URL?) -> NSItemProvider { if let url = url { TheApp.appDelegate.hideMainWnd() let ...
Andrew's user avatar
  • 11.9k
2 votes
0 answers
482 views

Question: How to create NSItemProvider from NSImage? The image is not being shown in LPLinkView Is there any other alternate way for creating an NSItemProvider from an image on macOS? My failed ...
user1046037's user avatar
  • 17.9k
1 vote
2 answers
1k views

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 a video. I get a callback on the ...
Chris Prince's user avatar
  • 7,634
0 votes
1 answer
209 views

I have a collection view that displays data arranged in a custom data model (struct) called "claimData." claimData declaration: struct claimData { var image = UIImage() var ...
Christian W's user avatar
3 votes
0 answers
216 views

Trivial example of a drop target. Running on MacOS. When you drag text content from another app (eg Notes), it is successfully targeted (ie box turns green) but no types are exposed for the actual ...
Rumbles's user avatar
  • 878
0 votes
0 answers
596 views

I have the following function which loads an image using the new PHPickerViewController: - (void) picker:(PHPickerViewController *)picker didFinishPicking:(NSArray<PHPickerResult *> *)results { ...
NSMoron's user avatar
  • 161