diff options
| author | Dustin Mierau <dustin@mierau.me> | 2024-01-09 10:30:44 -0800 |
|---|---|---|
| committer | Dustin Mierau <dustin@mierau.me> | 2024-01-09 10:30:44 -0800 |
| commit | 382121de2e79303845331d699adcdd777f8f062a (patch) | |
| tree | 83bab877069d3a0daddcb6c2a031400b99c60756 /Hotline/Application.swift | |
| parent | 0910d3380755d38a93e5b87a31ecf31f17d0bc58 (diff) | |
Split view in News saves position and hiding when an article isn't selected. Some code cleanup. Some plumbing for news posting though it's not hooked up yet.
Diffstat (limited to 'Hotline/Application.swift')
| -rw-r--r-- | Hotline/Application.swift | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Hotline/Application.swift b/Hotline/Application.swift index 4541ea3..e7445dc 100644 --- a/Hotline/Application.swift +++ b/Hotline/Application.swift @@ -55,6 +55,16 @@ struct Application: App { .environment(preferences) } + // MARK: News Editor Window +// WindowGroup(id: "news-editor", for: NewsArticle.self) { $article in +// NewsEditorView(article: $article) +// } +// .windowResizability(.contentSize) +// .windowStyle(.titleBar) +// .windowToolbarStyle(.unifiedCompact(showsTitle: true)) +// .defaultSize(width: 450, height: 550) +// .defaultPosition(.center) + // MARK: Image Preview Window WindowGroup(id: "preview-image", for: PreviewFileInfo.self) { $info in FilePreviewImageView(info: $info) |