mirror of
https://github.com/writeas/writefreely-swiftui-multiplatform.git
synced 2024-11-15 01:11:02 +00:00
Fix for being sent back to post list on app reactivate
This commit is contained in:
parent
8ddafcb11e
commit
7187d545a8
@ -130,9 +130,11 @@ struct PostListView: View {
|
||||
.ignoresSafeArea(.all, edges: .bottom)
|
||||
.onAppear {
|
||||
// Set the selected collection and whether or not we want to show all posts
|
||||
print("Setting selected collection")
|
||||
model.selectedCollection = selectedCollection
|
||||
model.showAllPosts = showAllPosts
|
||||
|
||||
print("Invalidating/refreshing PostListView")
|
||||
// We use this to invalidate and refresh the view, so that new posts created outside of the app (e.g.,
|
||||
// in the action extension) show up.
|
||||
withAnimation {
|
||||
|
Loading…
Reference in New Issue
Block a user