From d02090e06fd65d6f78e9c61fd34e466767a730fc Mon Sep 17 00:00:00 2001 From: david Date: Mon, 13 May 2024 16:26:06 +0900 Subject: [PATCH] read only (private(set)) --- Sources/SushiBelt/SushiBeltTrackerItem.swift | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Sources/SushiBelt/SushiBeltTrackerItem.swift b/Sources/SushiBelt/SushiBeltTrackerItem.swift index 4570874..6e35707 100644 --- a/Sources/SushiBelt/SushiBeltTrackerItem.swift +++ b/Sources/SushiBelt/SushiBeltTrackerItem.swift @@ -40,11 +40,11 @@ public struct SushiBeltTrackerItem { return self.isTracked ? .tracked : .tracking } - public var rect: SushiBeltTrackerItemRect - public var isTracked: Bool = false - public var currentVisibleRatio: CGFloat = 0.0 - public var objectiveVisibleRatio: CGFloat = 0.0 - public var timestamp: Date + public private(set) var rect: SushiBeltTrackerItemRect + public private(set) var isTracked: Bool = false + public private(set) var currentVisibleRatio: CGFloat = 0.0 + public private(set) var objectiveVisibleRatio: CGFloat = 0.0 + public private(set) var timestamp: Date public init(id: Identifier, rect: SushiBeltTrackerItemRect) { self.id = id