mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Dont show footer during loading
This commit is contained in:
parent
cd8347d0e0
commit
5383e8133b
2 changed files with 5 additions and 3 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue