mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2024-11-25 17:51:01 +00:00
Refresh notifications + Fix user profile header info
This commit is contained in:
parent
ac1b739bf3
commit
3850dab340
2 changed files with 4 additions and 1 deletions
|
@ -53,7 +53,7 @@ struct AccountDetailHeaderView: View {
|
||||||
Spacer()
|
Spacer()
|
||||||
Group {
|
Group {
|
||||||
makeCustomInfoLabel(title: "Posts", count: account.statusesCount)
|
makeCustomInfoLabel(title: "Posts", count: account.statusesCount)
|
||||||
makeCustomInfoLabel(title: "Following", count: account.followersCount)
|
makeCustomInfoLabel(title: "Following", count: account.followingCount)
|
||||||
makeCustomInfoLabel(title: "Followers", count: account.followersCount)
|
makeCustomInfoLabel(title: "Followers", count: account.followersCount)
|
||||||
}.offset(y: 20)
|
}.offset(y: 20)
|
||||||
}
|
}
|
||||||
|
|
|
@ -50,6 +50,9 @@ public struct NotificationsListView: View {
|
||||||
await viewModel.fetchNotifications()
|
await viewModel.fetchNotifications()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
.refreshable {
|
||||||
|
await viewModel.fetchNotifications()
|
||||||
|
}
|
||||||
.navigationTitle(Text("Notifications"))
|
.navigationTitle(Text("Notifications"))
|
||||||
.navigationBarTitleDisplayMode(.inline)
|
.navigationBarTitleDisplayMode(.inline)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue