mirror of
https://github.com/writeas/writefreely-swiftui-multiplatform.git
synced 2024-11-15 01:11:02 +00:00
Ensure we’re setting the model object’s properties
This commit is contained in:
parent
246d3948a9
commit
c826806bc1
@ -104,9 +104,9 @@ struct PostListView: View {
|
|||||||
}
|
}
|
||||||
.onDisappear {
|
.onDisappear {
|
||||||
DispatchQueue.main.async {
|
DispatchQueue.main.async {
|
||||||
model.selectedCollection = nil
|
self.model.selectedCollection = nil
|
||||||
model.showAllPosts = true
|
self.model.showAllPosts = true
|
||||||
model.selectedPost = nil
|
self.model.selectedPost = nil
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.navigationTitle(
|
.navigationTitle(
|
||||||
|
Loading…
Reference in New Issue
Block a user