From 34fef2f5eca64586aace2c83723135c1eca346f7 Mon Sep 17 00:00:00 2001 From: Dustin Mierau Date: Thu, 16 May 2024 17:40:27 -0700 Subject: Move tracker items and bookmarks to SwiftData for iCloud sync. --- Hotline/macOS/NewsView.swift | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Hotline/macOS/NewsView.swift') diff --git a/Hotline/macOS/NewsView.swift b/Hotline/macOS/NewsView.swift index 6f24193..8e10b19 100644 --- a/Hotline/macOS/NewsView.swift +++ b/Hotline/macOS/NewsView.swift @@ -13,7 +13,7 @@ struct NewsView: View { @State private var splitFraction = FractionHolder.usingUserDefaults(0.25, key: "News Split Fraction") @State private var editorOpen: Bool = false @State private var replyOpen: Bool = false - @State private var loading: Bool = true + @State private var loading: Bool = false var body: some View { Group { @@ -65,6 +65,7 @@ struct NewsView: View { } .task { if !model.newsLoaded { + loading = true await model.getNewsList() loading = false } -- cgit