From 083d69d1438549811353959465dc225396a0d31a Mon Sep 17 00:00:00 2001 From: Angelo Stavrow Date: Tue, 19 Jan 2021 09:48:00 -0500 Subject: [PATCH] Track changes to model.showAllPosts in @AppStorage --- Shared/PostCollection/CollectionListView.swift | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Shared/PostCollection/CollectionListView.swift b/Shared/PostCollection/CollectionListView.swift index 933ba96..abe1f8b 100644 --- a/Shared/PostCollection/CollectionListView.swift +++ b/Shared/PostCollection/CollectionListView.swift @@ -80,6 +80,9 @@ struct CollectionListView: View { .onChange(of: model.selectedCollection) { collection in self.selectedCollectionURL = collection?.objectID.uriRepresentation() } + .onChange(of: model.showAllPosts) { value in + self.showAllPostsFlag = model.showAllPosts + } } }