fix preview tests broken by a swiftformat rule,

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