How do you configure a document-based SwiftUI multi-platform app to be able to import .log files?

In a new document-based UIKit app, specifying in the Info.plist an import type identifier of public.log that conforms to public.content, public.data, public.item accomplishes this.

In a new document-based SwiftUI multi-platform app, doing the same crashed at the DocumentGroup initializer with the error

_SwiftData_SwiftUI/Documents.swift:91: Fatal error: The document type is public.log which does not conform to com.apple.package.
This initializer expects the document type to be a package.

After opting out of SwiftData, this is no longer an issue.

How do you configure a document-based SwiftUI multi-platform app to be able to import .log files?
 
 
Q