Question:
- How to create
NSItemProviderfromNSImage? The image is not being shown inLPLinkView - Is there any other alternate way for creating an
NSItemProviderfrom an image on macOS?
My failed attempt:
Even though I managed to create the object the LPLinkView doesn't display the image
let image1 = NSImage(named: "Car")!
let itemProvider1 = NSItemProvider(item: image1, typeIdentifier: UTType.image.identifier)