Track changes to model.showAllPosts in @AppStorage

This commit is contained in:
Angelo Stavrow 2021-01-19 09:48:00 -05:00
parent deadfb8509
commit 083d69d143
No known key found for this signature in database
GPG Key ID: 1A49C7064E060EEE

View File

@ -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
}
}
}