Run SwiftFormat.

This commit is contained in:
Doug
2026-05-27 14:38:50 +01:00
committed by Doug
parent 5138e05e47
commit fa67713726
573 changed files with 2426 additions and 2426 deletions
@@ -69,7 +69,7 @@ public struct CompoundButtonStyle: ButtonStyle {
case .toolbarIcon: 3
}
}
private var verticalPadding: CGFloat {
if kind == .textLink {
return 0
@@ -103,7 +103,7 @@ public struct CompoundButtonStyle: ButtonStyle {
private var isUnderlined: Bool {
kind == .textLink && accessibilityShowButtonShapes
}
public func makeBody(configuration: Self.Configuration) -> some View {
configuration.label
.font(font)
@@ -147,7 +147,7 @@ public struct CompoundButtonStyle: ButtonStyle {
EmptyView()
}
}
private var contentShape: AnyShape {
switch kind {
case .super, .primary, .secondary, .tertiary:
@@ -156,7 +156,7 @@ public struct CompoundButtonStyle: ButtonStyle {
return AnyShape(Rectangle())
}
}
private func fillColor(configuration: Self.Configuration) -> Color {
guard isEnabled else { return .compound.bgActionPrimaryDisabled }
if configuration.role == .destructive {