Reset selectedCollection/showAllPosts when dismissing PostListView

This commit is contained in:
Angelo Stavrow 2020-12-07 12:03:45 -05:00
parent a0b1218473
commit 709a654528
No known key found for this signature in database
GPG Key ID: 1A49C7064E060EEE

View File

@ -104,6 +104,8 @@ struct PostListView: View {
}
.onDisappear {
DispatchQueue.main.async {
model.selectedCollection = nil
model.showAllPosts = true
model.selectedPost = nil
}
}