aboutsummaryrefslogtreecommitdiff
path: root/LibreEdit/LibreEditApp.swift
diff options
context:
space:
mode:
authorChristian Cleberg <hello@cleberg.net>2024-01-14 11:09:32 -0600
committerChristian Cleberg <hello@cleberg.net>2024-01-14 11:09:32 -0600
commitb5a5dc8963dbd73d30c188eb9f3018add76a2c06 (patch)
tree3b73910d6bb0f151b3fde6a6a50c044e6d28d657 /LibreEdit/LibreEditApp.swift
parent9e2c7e09543cf5288303e59125e897f8731b8a1a (diff)
downloadlibre-edit-b5a5dc8963dbd73d30c188eb9f3018add76a2c06.tar.gz
libre-edit-b5a5dc8963dbd73d30c188eb9f3018add76a2c06.tar.bz2
libre-edit-b5a5dc8963dbd73d30c188eb9f3018add76a2c06.zip
feat: update app to use native file manager as the base
Diffstat (limited to 'LibreEdit/LibreEditApp.swift')
-rw-r--r--LibreEdit/LibreEditApp.swift4
1 files changed, 2 insertions, 2 deletions
diff --git a/LibreEdit/LibreEditApp.swift b/LibreEdit/LibreEditApp.swift
index 23a791f..b2c9736 100644
--- a/LibreEdit/LibreEditApp.swift
+++ b/LibreEdit/LibreEditApp.swift
@@ -10,8 +10,8 @@ import SwiftUI
@main
struct LibreEditApp: App {
var body: some Scene {
- WindowGroup {
- ContentView()
+ DocumentGroup(newDocument: TextFile()) { file in
+ ContentView(document: file.$document)
}
}
}