Request: Supporting document-based apps with DocumentGroup
I recently came across the project and wanted to give it a shot for my app, Alidade (https://alidade.dev), but I noticed there doesn't seem to be any support for document-based apps with DocumentGroup. I'd like to request for such functionality in the future, as it would enable a whole class of apps.
These types of apps can provide:
- A document launch experience and browser to let users pick files they want to open, or create a new one
- A document view for reading and writing documents
- Support for common operations such as copy/paste, undo/redo, etc. via conformances to
FileDocumentandReferenceFileDocument
More information on document-based apps: https://developer.apple.com/documentation/swiftui/documents
Some things to note:
- DocumentGroup and related APIs like FileWrapper are somewhat of a black box, and there's additional metadata to consider/read from Info.plist.
- From what I've lightly researched, document browsers don't seem to really exist on Android (unless I'm looking in the wrong places on the documentation), so a new view might need to be created for Android specifically.
(I've also kept note of this with alicerunsonfedora/mcmaps#18)
This would definitely be a great addition! As you mention, there isn't any equivalent to any of Swift's built-in document affordances in Jetpack Compose (or Android in general), so this would be a significant effort. But certainly worthwhile…
Seconded interest in using skip to port Purrticles to Android after I add Godot support but am using DocumentGroup.