Update files following swiftformat upgrade

This commit is contained in:
Stefan Ceriu
2026-01-27 08:47:03 +02:00
committed by Stefan Ceriu
parent fe189fcfed
commit 23062901c0
343 changed files with 1502 additions and 1048 deletions
@@ -45,10 +45,8 @@ struct CallNotificationRoomTimelineView: View {
.foregroundColor(.compound.textSecondary)
}
.padding(12)
.overlay(
RoundedRectangle(cornerRadius: 8)
.stroke(.compound.borderInteractiveSecondary, lineWidth: 1)
)
.overlay(RoundedRectangle(cornerRadius: 8)
.stroke(.compound.borderInteractiveSecondary, lineWidth: 1))
.padding(16)
}
}
@@ -57,7 +57,7 @@ struct FormattedBodyText: View {
boostFontSize: boostFontSize)
}
// These is needed to create the slightly off inlined timestamp effect
/// These is needed to create the slightly off inlined timestamp effect
private var additionalWhitespacesSuffix: String {
.generateBreakableWhitespaceEnd(whitespaceCount: additionalWhitespacesCount, layoutDirection: layoutDirection)
}
@@ -68,7 +68,6 @@ struct FormattedBodyText: View {
.accessibilityLabel(Text(attributedString))
}
@ViewBuilder
var mainContent: some View {
layout
.tint(.compound.textLinkExternal)
@@ -13,7 +13,9 @@ struct ImageRoomTimelineView: View {
@Environment(\.timelineContext) private var context
let timelineItem: ImageRoomTimelineItem
var hasMediaCaption: Bool { timelineItem.content.caption != nil }
var hasMediaCaption: Bool {
timelineItem.content.caption != nil
}
var body: some View {
TimelineStyler(timelineItem: timelineItem) {
@@ -7,9 +7,8 @@
//
import Foundation
import SwiftUI
import OrderedCollections
import SwiftUI
struct TextRoomTimelineView: View, TextBasedRoomTimelineViewProtocol {
static let maxLinkPreviewsToRender = 2
@@ -13,7 +13,9 @@ struct VideoRoomTimelineView: View {
@Environment(\.timelineContext) private var context
let timelineItem: VideoRoomTimelineItem
private var hasMediaCaption: Bool { timelineItem.content.caption != nil }
private var hasMediaCaption: Bool {
timelineItem.content.caption != nil
}
var body: some View {
TimelineStyler(timelineItem: timelineItem) {