Skip to content

Commit

Permalink
read only (private(set))
Browse files Browse the repository at this point in the history
  • Loading branch information
GeekTree0101 committed May 13, 2024
1 parent e90d6a0 commit d02090e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Sources/SushiBelt/SushiBeltTrackerItem.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d02090e

Please sign in to comment.