Dont display empty view until loading has completed

This commit is contained in:
Jackson Harper 2022-12-08 17:41:46 +08:00
parent d7ddad5c24
commit f352a1501c

View file

@ -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")