From 382121de2e79303845331d699adcdd777f8f062a Mon Sep 17 00:00:00 2001 From: Dustin Mierau Date: Tue, 9 Jan 2024 10:30:44 -0800 Subject: 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. --- Hotline/Application.swift | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'Hotline/Application.swift') 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) -- cgit