Moved the LoadingView component to the overlay of the content of the BrowseView view for the Browse module.
This commit is contained in:
parent
fdb4e16d32
commit
b6a18b8ad9
@ -61,6 +61,11 @@ public struct BrowseView: View {
|
||||
showProfile: showProfile
|
||||
)
|
||||
}
|
||||
.overlay {
|
||||
if status == .loading {
|
||||
LoadingView()
|
||||
}
|
||||
}
|
||||
.sheet(item: $showSheet) { sheet in
|
||||
switch sheet {
|
||||
case let .upload(id):
|
||||
@ -106,9 +111,8 @@ private extension BrowseView {
|
||||
)
|
||||
case .notSupported:
|
||||
EmptyView()
|
||||
case .loading:
|
||||
LoadingView()
|
||||
case .loaded:
|
||||
case .loading,
|
||||
.loaded:
|
||||
List(items, id: \.id) { item in
|
||||
switch item {
|
||||
case is Folder:
|
||||
|
Loading…
x
Reference in New Issue
Block a user