Dont show footer during loading

This commit is contained in:
Jackson Harper 2024-03-08 12:49:41 +08:00
parent cd8347d0e0
commit 5383e8133b
2 changed files with 5 additions and 3 deletions

View file

@ -832,7 +832,9 @@ struct AnimatingCellHeight: AnimatableModifier {
}, header: {
filtersHeader
})
BottomView(viewModel: viewModel)
if viewModel.showLoadingBar == .none {
BottomView(viewModel: viewModel)
}
}
.padding(0)
.listStyle(.plain)
@ -1038,7 +1040,7 @@ struct AnimatingCellHeight: AnimatableModifier {
}
}
if viewModel.fetcher.items.isEmpty {
if viewModel.fetcher.items.isEmpty || viewModel.showLoadingBar == .redacted || viewModel.showLoadingBar == .simple {
EmptyState(viewModel: viewModel)
} else {
HStack {

View file

@ -11,7 +11,7 @@ public enum GridCardAction {
}
public struct GridCard: View {
let item: Models.LibraryItem
@ObservedObject var item: Models.LibraryItem
public init(
item: Models.LibraryItem