summaryrefslogtreecommitdiff
path: root/Sora/Views/Post/Grid/PostGridView.swift
diff options
context:
space:
mode:
authorFuwn <[email protected]>2025-06-16 10:02:44 -0700
committerFuwn <[email protected]>2025-06-16 10:02:44 -0700
commit375d5b504634915bb17c932ee49aee99036275d0 (patch)
treeb6745fc4134e639895c13160794982e9f0d4694a /Sora/Views/Post/Grid/PostGridView.swift
parentfeat: Development commit (diff)
downloadsora-testing-375d5b504634915bb17c932ee49aee99036275d0.tar.xz
sora-testing-375d5b504634915bb17c932ee49aee99036275d0.zip
feat: Development commit
Diffstat (limited to 'Sora/Views/Post/Grid/PostGridView.swift')
-rw-r--r--Sora/Views/Post/Grid/PostGridView.swift8
1 files changed, 8 insertions, 0 deletions
diff --git a/Sora/Views/Post/Grid/PostGridView.swift b/Sora/Views/Post/Grid/PostGridView.swift
index 4e283aa..9dce682 100644
--- a/Sora/Views/Post/Grid/PostGridView.swift
+++ b/Sora/Views/Post/Grid/PostGridView.swift
@@ -30,6 +30,14 @@ struct PostGridView: View { // swiftlint:disable:this type_body_length
ScrollView {
Group {
+ if let error = manager.error {
+ ContentUnavailableView(
+ "Provider Error",
+ systemImage: "exclamationmark.triangle.fill",
+ description: Text(error.localizedDescription)
+ )
+ }
+
if filteredPosts.isEmpty, isActive, manager.isLoading {
let gridItems = Array(
repeating: GridItem(.flexible()),