diff options
| author | Dustin Mierau <dustin@mierau.me> | 2024-05-16 17:40:27 -0700 |
|---|---|---|
| committer | Dustin Mierau <dustin@mierau.me> | 2024-05-16 17:40:27 -0700 |
| commit | 34fef2f5eca64586aace2c83723135c1eca346f7 (patch) | |
| tree | c1932cd9e17a4d8574952f43eee611fda4c09485 /Hotline/macOS/NewsView.swift | |
| parent | bba5122797f47f463c2949a79876e2514694ca02 (diff) | |
Move tracker items and bookmarks to SwiftData for iCloud sync.
Diffstat (limited to 'Hotline/macOS/NewsView.swift')
| -rw-r--r-- | Hotline/macOS/NewsView.swift | 3 |
1 files changed, 2 insertions, 1 deletions
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 } |