From 709a654528cf0022caa80d42a39ea7511cd8876b Mon Sep 17 00:00:00 2001 From: Angelo Stavrow Date: Mon, 7 Dec 2020 12:03:45 -0500 Subject: [PATCH] Reset selectedCollection/showAllPosts when dismissing PostListView --- Shared/PostList/PostListView.swift | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Shared/PostList/PostListView.swift b/Shared/PostList/PostListView.swift index acd1fbe..5413e88 100644 --- a/Shared/PostList/PostListView.swift +++ b/Shared/PostList/PostListView.swift @@ -104,6 +104,8 @@ struct PostListView: View { } .onDisappear { DispatchQueue.main.async { + model.selectedCollection = nil + model.showAllPosts = true model.selectedPost = nil } }