CoreSpotlight catalyst preview

I created some objects and pusehd them to core spotlight using the CSSearchableIndex.default().indexSearchableItems function.

Now I also wanted the app to run on macOS, so I enabled the Mac target in my Deployment Info.

So far so good. The objects also show up in the spotlight search on macOS.


My question is: how do I set up the preview?

The default is just an empty view and when I try to use my iOS "Quick Look Preview Extension" I get a compiler error:

Quick Look Preview extensions are not available when building for Mac Catalyst.


I also tried adding a macOS "Quick Look Preview Extension" target. But it also does not work. I guess it is not working, because I do not have a macOS app.


What is the correct way to provide the preview on mac catalyst?

CoreSpotlight catalyst preview
 
 
Q