Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request: Supporting document-based apps with DocumentGroup #360

Open
alicerunsonfedora opened this issue Feb 25, 2025 · 1 comment
Open
Labels
enhancement New feature or request

Comments

@alicerunsonfedora
Copy link

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 FileDocument and ReferenceFileDocument

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)

@marcprux marcprux added the enhancement New feature or request label Feb 25, 2025
@marcprux
Copy link
Contributor

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…

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants