Document and SwiftData ignore imported types

Hello there,

I would like to bring attention to an issue I'm facing with SwiftData while attempting to create my own document type and a document-based app. It appears that there is a lack of support for imported types, and I'm unsure if this is a result of the beta version or an intentional omission.

To reproduce the problem, please follow these steps:

  1. Create a document-based app with SwiftData enabled.
  2. Define your document type as "test" in the info.plist file.
  3. Include the "test" type in the list of exported type identifiers.
  4. Add a commonly used type such as "pdf" or "txt" to the list of imported type identifiers.
  5. Within the app's body, include a DocumentGroup with the content type set as "test."

Currently, the app is capable of opening and creating new documents with the "test" type. However, I am unable to open common file types, such as images or text files. This limitation is a significant concern since the app often needs to handle these general file formats rather than being limited to its specific format.

Thank you for your attention to this matter. I appreciate any assistance you can provide in resolving this issue.

Best regards, Jeremy Vizzini