mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 06:55:59 +00:00
fix preview tests broken by a swiftformat rule,
This commit is contained in:
@@ -21,7 +21,7 @@ struct TimelineStyler<Content: View>: View {
|
||||
init(timelineItem: EventBasedTimelineItemProtocol, @ViewBuilder content: @escaping () -> Content) {
|
||||
self.timelineItem = timelineItem
|
||||
self.content = content
|
||||
adjustedDeliveryStatus = timelineItem.properties.deliveryStatus
|
||||
_adjustedDeliveryStatus = State(initialValue: timelineItem.properties.deliveryStatus)
|
||||
}
|
||||
|
||||
var body: some View {
|
||||
|
||||
+1
-1
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user