From bd4e40598497897341252f3f8de344b07b5f7795 Mon Sep 17 00:00:00 2001 From: Jackson Harper Date: Fri, 8 Mar 2024 13:26:49 +0800 Subject: [PATCH] Dont show results indicator while loading on iPad --- .../Sources/App/Views/Home/HomeFeedViewIOS.swift | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/apple/OmnivoreKit/Sources/App/Views/Home/HomeFeedViewIOS.swift b/apple/OmnivoreKit/Sources/App/Views/Home/HomeFeedViewIOS.swift index b4cd25501..7baa71f50 100644 --- a/apple/OmnivoreKit/Sources/App/Views/Home/HomeFeedViewIOS.swift +++ b/apple/OmnivoreKit/Sources/App/Views/Home/HomeFeedViewIOS.swift @@ -150,13 +150,15 @@ struct EmptyState: View { return AnyView(Group { Spacer() - VStack(alignment: .center, spacing: 20) { - Text("No results found for this query") - .font(Font.system(size: 18, weight: .bold)) + if viewModel.showLoadingBar == .none { + VStack(alignment: .center, spacing: 20) { + Text("No results found for this query") + .font(Font.system(size: 18, weight: .bold)) + } + .frame(minHeight: 400) + .frame(maxWidth: .infinity) + .padding() } - .frame(minHeight: 400) - .frame(maxWidth: .infinity) - .padding() Spacer() })