Refresh notifications + Fix user profile header info

This commit is contained in:
Thomas Ricouard 2022-12-19 16:02:55 +01:00
parent ac1b739bf3
commit 3850dab340
2 changed files with 4 additions and 1 deletions

View file

@ -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)
}

View file

@ -50,6 +50,9 @@ public struct NotificationsListView: View {
await viewModel.fetchNotifications()
}
}
.refreshable {
await viewModel.fetchNotifications()
}
.navigationTitle(Text("Notifications"))
.navigationBarTitleDisplayMode(.inline)
}