From f352a1501c60b2ad7c05b87bd6ab69b1a9e9dc64 Mon Sep 17 00:00:00 2001 From: Jackson Harper Date: Thu, 8 Dec 2022 17:41:46 +0800 Subject: [PATCH] Dont display empty view until loading has completed --- .../Sources/App/Views/Profile/RecommendationGroupsView.swift | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apple/OmnivoreKit/Sources/App/Views/Profile/RecommendationGroupsView.swift b/apple/OmnivoreKit/Sources/App/Views/Profile/RecommendationGroupsView.swift index f2896030a..a9d64bd1f 100644 --- a/apple/OmnivoreKit/Sources/App/Views/Profile/RecommendationGroupsView.swift +++ b/apple/OmnivoreKit/Sources/App/Views/Profile/RecommendationGroupsView.swift @@ -140,7 +140,7 @@ struct GroupsView: View { } } } - } else { + } else if !viewModel.isLoading { Section { Text(""" You are not a member of any groups. @@ -153,6 +153,8 @@ struct GroupsView: View { """) .accentColor(.blue) } + } else { + ProgressView() } } .navigationTitle("Recommendation Groups")