mirror of
https://github.com/writeas/writefreely-swiftui-multiplatform.git
synced 2024-11-15 01:11:02 +00:00
Adapt new navigation to Mac app
This commit is contained in:
parent
0c41416314
commit
ba898b6ac6
@ -35,12 +35,12 @@ struct ContentView: View {
|
|||||||
.help("Create a new local draft.")
|
.help("Create a new local draft.")
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
CollectionListView(selectedCollection: model.selectedCollection)
|
CollectionListView()
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if os(macOS)
|
#if os(macOS)
|
||||||
ZStack {
|
ZStack {
|
||||||
PostListView()
|
PostListView(selectedCollection: model.selectedCollection, showAllPosts: model.showAllPosts)
|
||||||
if model.isProcessingRequest {
|
if model.isProcessingRequest {
|
||||||
ZStack {
|
ZStack {
|
||||||
Color(NSColor.controlBackgroundColor).opacity(0.75)
|
Color(NSColor.controlBackgroundColor).opacity(0.75)
|
||||||
|
@ -159,6 +159,10 @@ struct PostListView: View {
|
|||||||
model.account.server == "https://write.as" ? "Anonymous" : "Drafts"
|
model.account.server == "https://write.as" ? "Anonymous" : "Drafts"
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
.onAppear {
|
||||||
|
model.selectedCollection = selectedCollection
|
||||||
|
model.showAllPosts = showAllPosts
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user