Skip to content

Commit

Permalink
Make items private(set).
Browse files Browse the repository at this point in the history
  • Loading branch information
boscojwho committed Sep 29, 2023
1 parent a355243 commit 8e5fcdd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Mlem/Models/Trackers/Post Tracker.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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<ContentModelIdentifier> = .init(minimumCapacity: 1000)
Expand Down

0 comments on commit 8e5fcdd

Please sign in to comment.