mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2024-11-26 18:21:00 +00:00
Various fixes
This commit is contained in:
parent
987a655227
commit
7506c33482
2 changed files with 35 additions and 35 deletions
|
@ -30,7 +30,6 @@ struct AccountDetailHeaderView: View {
|
|||
}
|
||||
|
||||
private var headerImageView: some View {
|
||||
GeometryReader { _ in
|
||||
ZStack(alignment: .bottomTrailing) {
|
||||
if reasons.contains(.placeholder) {
|
||||
Rectangle()
|
||||
|
@ -65,7 +64,6 @@ struct AccountDetailHeaderView: View {
|
|||
}
|
||||
}
|
||||
.background(Color.gray)
|
||||
}
|
||||
.frame(height: bannerHeight)
|
||||
.offset(y: scrollOffset > 0 ? -scrollOffset : 0)
|
||||
.contentShape(Rectangle())
|
||||
|
|
|
@ -31,12 +31,14 @@ class NotificationsViewModel: ObservableObject {
|
|||
@Published var state: State = .loading
|
||||
@Published var selectedType: Models.Notification.NotificationType? {
|
||||
didSet {
|
||||
if oldValue != selectedType {
|
||||
notifications = []
|
||||
Task {
|
||||
await fetchNotifications()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private var queryTypes: [String]? {
|
||||
if let selectedType {
|
||||
|
|
Loading…
Reference in a new issue