Run SwiftFormat and fix SwiftLint.

This commit is contained in:
Doug
2025-09-28 15:25:05 +01:00
committed by Doug
parent ed73853c9b
commit 90eeabf9de
15 changed files with 54 additions and 46 deletions
@@ -68,7 +68,7 @@ public struct ListRowLabel<Icon: View>: View {
}
var iconAlignment: VerticalAlignment = .center
var hideIconBackground: Bool = false
var hideIconBackground = false
enum Layout { case `default`, centered, avatar }
var layout: Layout = .default
@@ -77,6 +77,7 @@ public struct ListRowLabel<Icon: View>: View {
guard isEnabled else { return .compound.textDisabled }
return role == .destructive ? .compound.textCriticalPrimary : .compound.textPrimary
}
var titleLineLimit: Int? { layout == .avatar ? 1 : lineLimit }
var statusColor: Color {
@@ -86,6 +87,7 @@ public struct ListRowLabel<Icon: View>: View {
var descriptionColor: Color {
isEnabled ? .compound.textSecondary : .compound.textDisabled
}
var descriptionLineLimit: Int? {
guard layout == .avatar else { return lineLimit }
return role != .error ? 1 : lineLimit