From 99ba9eb23550997e569d362acbf2815411531d7b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Wischer?= Date: Thu, 16 Jul 2026 21:23:09 +0200 Subject: [PATCH] Fix CI failures: SwiftFormat indentation and stale text field snapshot Reformat two files to satisfy SwiftFormat's indent rule on blank lines introduced by the accessibility fixes in this branch, and re-record the compoundTextFieldStyle preview snapshots to match the new resting-state border rendering on raised text fields. --- .../View/PinnedItemsBanner/PinnedItemsBannerView.swift | 2 +- .../Sources/Screens/Timeline/View/Polls/PollOptionView.swift | 2 +- .../PreviewTests/compoundTextFieldStyle.iPad-en-US-0.png | 4 ++-- .../PreviewTests/compoundTextFieldStyle.iPhone-en-US-0.png | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/ElementX/Sources/Screens/RoomScreen/View/PinnedItemsBanner/PinnedItemsBannerView.swift b/ElementX/Sources/Screens/RoomScreen/View/PinnedItemsBanner/PinnedItemsBannerView.swift index d60010571..6fd65b7a8 100644 --- a/ElementX/Sources/Screens/RoomScreen/View/PinnedItemsBanner/PinnedItemsBannerView.swift +++ b/ElementX/Sources/Screens/RoomScreen/View/PinnedItemsBanner/PinnedItemsBannerView.swift @@ -44,7 +44,7 @@ struct PinnedItemsBannerView: View { .accessibilityLabel(Text(state.displayedMessage)) .accessibilityValue(String(state.bannerIndicatorDescription.characters), isEnabled: state.count > 1) } - + private var viewAllButton: some View { Button { onViewAllButtonTap() } label: { Text(state.isLoading ? "" : L10n.screenRoomPinnedBannerViewAllButtonTitle) diff --git a/ElementX/Sources/Screens/Timeline/View/Polls/PollOptionView.swift b/ElementX/Sources/Screens/Timeline/View/Polls/PollOptionView.swift index bd9913691..4cb89d338 100644 --- a/ElementX/Sources/Screens/Timeline/View/Polls/PollOptionView.swift +++ b/ElementX/Sources/Screens/Timeline/View/Polls/PollOptionView.swift @@ -37,7 +37,7 @@ struct PollOptionView: View { CompoundIcon(asset: Asset.Images.pollWinner) .foregroundColor(.compound.iconAccentTertiary) .accessibilityLabel(L10n.a11yPollsWinningAnswer) - + Text(L10n.commonPollVotesCount(pollOption.votes)) .font(.compound.bodySMSemibold) .foregroundColor(.compound.textPrimary) diff --git a/compound-ios/Tests/CompoundTests/__Snapshots__/PreviewTests/compoundTextFieldStyle.iPad-en-US-0.png b/compound-ios/Tests/CompoundTests/__Snapshots__/PreviewTests/compoundTextFieldStyle.iPad-en-US-0.png index a66773d1d..81a50c9c1 100644 --- a/compound-ios/Tests/CompoundTests/__Snapshots__/PreviewTests/compoundTextFieldStyle.iPad-en-US-0.png +++ b/compound-ios/Tests/CompoundTests/__Snapshots__/PreviewTests/compoundTextFieldStyle.iPad-en-US-0.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:5b50af9a6a0b85eff9a5b0806d431b76bf6ff9def2d20ac32e63af1265f87bf6 -size 234892 +oid sha256:282243f297e0c64292faa2b4295b1152881a290bbad790f42966647f999d9b3e +size 242145 diff --git a/compound-ios/Tests/CompoundTests/__Snapshots__/PreviewTests/compoundTextFieldStyle.iPhone-en-US-0.png b/compound-ios/Tests/CompoundTests/__Snapshots__/PreviewTests/compoundTextFieldStyle.iPhone-en-US-0.png index e90611117..e6cde379a 100644 --- a/compound-ios/Tests/CompoundTests/__Snapshots__/PreviewTests/compoundTextFieldStyle.iPhone-en-US-0.png +++ b/compound-ios/Tests/CompoundTests/__Snapshots__/PreviewTests/compoundTextFieldStyle.iPhone-en-US-0.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:2f3f599dbbdaf73b51276cd5409fbb56c952f6627820d1324ce61cbeefb8b51a -size 144539 +oid sha256:4e152394328a312a27e6f60426b4e977855f2c8569b6a861163231fad5845c72 +size 150627