swiftformat now enforces newlines for ifs

This commit is contained in:
Mauro Romito
2026-06-19 13:46:46 +02:00
committed by Mauro
parent f32b9eeb26
commit 3aedd0ccff
17 changed files with 87 additions and 29 deletions
@@ -98,7 +98,9 @@ public struct ListRowLabel<Icon: View>: View {
var iconForegroundColor: Color {
guard isEnabled else { return .compound.iconTertiaryAlpha }
if role == .destructive { return .compound.iconCriticalPrimary }
if role == .destructive {
return .compound.iconCriticalPrimary
}
if hideIconBackground {
return .compound.iconTertiaryAlpha
} else {
@@ -111,7 +113,9 @@ public struct ListRowLabel<Icon: View>: View {
}
var iconBackgroundColor: Color {
if hideIconBackground { return .clear }
if hideIconBackground {
return .clear
}
if #available(iOS 26, *) {
return .clear
} else {