mirror of
https://github.com/writeas/writefreely-swiftui-multiplatform.git
synced 2024-11-15 01:11:02 +00:00
Overlay ProgressView on post list while processing network requests
This commit is contained in:
parent
fb5255cb04
commit
a5ab2182eb
@ -51,6 +51,7 @@ struct ContentView: View {
|
||||
#endif
|
||||
|
||||
#if os(macOS)
|
||||
ZStack {
|
||||
PostListView(selectedCollection: nil, showAllPosts: model.account.isLoggedIn)
|
||||
.toolbar {
|
||||
ToolbarItemGroup(placement: .primaryAction) {
|
||||
@ -71,6 +72,13 @@ struct ContentView: View {
|
||||
}
|
||||
}
|
||||
}
|
||||
if model.isProcessingRequest {
|
||||
ZStack {
|
||||
Color(NSColor.controlBackgroundColor).opacity(0.75)
|
||||
ProgressView()
|
||||
}
|
||||
}
|
||||
}
|
||||
#else
|
||||
PostListView(selectedCollection: nil, showAllPosts: model.account.isLoggedIn)
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user