I'm working on a document based app with UIDocumentBrowserViewController. The app itself creates txt files which the user can edit and save.
I want to send those files to a companion app on an Apple Watch. The user can then read those on the watch. The UIDocument is read by my app and converted to be sent with WCSession.
The question is now: How can I uniquely identify an UIDocument?
I know I could make my own identifier by putting a UUID in the file name or at the end of each text file, but this is not the sweet solution.