mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 21:33:26 +00:00
swiftformat now enforces newlines for ifs
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user