From 3850dab3409cfb0eda3f06b38128c98441095576 Mon Sep 17 00:00:00 2001 From: Thomas Ricouard Date: Mon, 19 Dec 2022 16:02:55 +0100 Subject: [PATCH] Refresh notifications + Fix user profile header info --- Packages/Account/Sources/Account/AccountDetailHeaderView.swift | 2 +- .../Sources/Notifications/NotificationsListView.swift | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Packages/Account/Sources/Account/AccountDetailHeaderView.swift b/Packages/Account/Sources/Account/AccountDetailHeaderView.swift index 5f9b6885..55ae7bc2 100644 --- a/Packages/Account/Sources/Account/AccountDetailHeaderView.swift +++ b/Packages/Account/Sources/Account/AccountDetailHeaderView.swift @@ -53,7 +53,7 @@ struct AccountDetailHeaderView: View { Spacer() Group { makeCustomInfoLabel(title: "Posts", count: account.statusesCount) - makeCustomInfoLabel(title: "Following", count: account.followersCount) + makeCustomInfoLabel(title: "Following", count: account.followingCount) makeCustomInfoLabel(title: "Followers", count: account.followersCount) }.offset(y: 20) } diff --git a/Packages/Notifications/Sources/Notifications/NotificationsListView.swift b/Packages/Notifications/Sources/Notifications/NotificationsListView.swift index 76ec4cee..8d471250 100644 --- a/Packages/Notifications/Sources/Notifications/NotificationsListView.swift +++ b/Packages/Notifications/Sources/Notifications/NotificationsListView.swift @@ -50,6 +50,9 @@ public struct NotificationsListView: View { await viewModel.fetchNotifications() } } + .refreshable { + await viewModel.fetchNotifications() + } .navigationTitle(Text("Notifications")) .navigationBarTitleDisplayMode(.inline) }