From 8e5fcdd7c5914688f2cbae80113da5ad5af50ae4 Mon Sep 17 00:00:00 2001 From: Bosco Ho Date: Fri, 29 Sep 2023 15:33:58 -0700 Subject: [PATCH] Make `items` private(set). --- Mlem/Models/Trackers/Post Tracker.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Mlem/Models/Trackers/Post Tracker.swift b/Mlem/Models/Trackers/Post Tracker.swift index cd9493c3a..21384c40f 100644 --- a/Mlem/Models/Trackers/Post Tracker.swift +++ b/Mlem/Models/Trackers/Post Tracker.swift @@ -26,7 +26,7 @@ class PostTracker: ObservableObject { private let upvoteOnSave: Bool // state drivers - @Published var items: [PostModel] + @Published private(set) var items: [PostModel] // utility private var ids: Set = .init(minimumCapacity: 1000)