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

Create Relm4 components for document-based apps #481

Open
chriskilding opened this issue Jun 27, 2023 · 0 comments
Open

Create Relm4 components for document-based apps #481

chriskilding opened this issue Jun 27, 2023 · 0 comments

Comments

@chriskilding
Copy link
Contributor

SwiftUI has building blocks specifically for making document-based apps (like text editors). These remove a huge amount of boilerplate code for opening/saving of files, undo/redo, and so on.

In SwiftUI, these building blocks allow you to create a document-based app with as little code as:

@main
struct DocumentBasedApp: App {
    var body: some Scene {
        DocumentGroup(newDocument: { ChecklistDocument() }) { configuration in
            ChecklistView()
        }
    }
}

(More documentation: https://developer.apple.com/documentation/swiftui/building_a_document-based_app_with_swiftui)

It would therefore be great to see some equivalent building blocks for creating document-based apps in Relm4.

@chriskilding chriskilding changed the title Create components for document-based apps Create Relm4 components for document-based apps Jun 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant