swiftformat

This commit is contained in:
Mauro Romito
2026-06-08 10:46:34 +02:00
committed by Mauro
parent 34ada2d933
commit 6ec1f0eb10
5 changed files with 36 additions and 42 deletions
@@ -18,7 +18,7 @@ struct LiveLocationRoomTimelineView: View {
init(currentDate: Date = .now, timelineItem: LiveLocationRoomTimelineItem, isStopped: Bool = false) {
self.currentDate = currentDate
self.timelineItem = timelineItem
_hasExpired = State(initialValue: isStopped || currentDate >= timelineItem.content.timeoutDate)
hasExpired = isStopped || currentDate >= timelineItem.content.timeoutDate
}
/// A publisher that fires once when the timeoutDate is reached, setting `hasExpired` to true.