Passing data from a Finder Sync Extension to my main Swift app

Hi all,

I am creating an app that, when you right-click on a file and select a custom option in the context menu, it pops open a window then processes this file.

Currently, I am writing that file name and path to a plist in my app's group container folder, sending a notification from my finder sync extension to my main app, and then reading the values in my plist.

Is this the best way to pass data between the finder sync extension and the main app? What is the industry standard way of doing this?

Thanks, James

Passing data from a Finder Sync Extension to my main Swift app
 
 
Q