Skip to content

Commit ff36b21

Browse files
Bocanegragithub-actions[bot]
authored andcommitted
Run swiftformat
1 parent 2d7a28f commit ff36b21

File tree

1 file changed

+21
-13
lines changed

1 file changed

+21
-13
lines changed

Sources/Mistica/Components/Button/ButtonStyle+Toolkit.swift

Lines changed: 21 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -53,21 +53,29 @@ public extension Button.Style {
5353
}
5454

5555
static var secondaryBrand: Button.Style {
56-
return Button.Style(
56+
Button.Style(
5757
allowsBleedingAlignment: false,
5858
stateStyleByState: [
59-
.normal: Button.StateStyle(textColor: .textButtonSecondaryInverse,
60-
backgroundColor: .buttonSecondaryBackgroundBrand,
61-
borderColor: .buttonSecondaryBorderInverse),
62-
.selected: Button.StateStyle(textColor: .textButtonSecondaryInversePressed,
63-
backgroundColor: .buttonSecondaryBackgroundBrandPressed,
64-
borderColor: .buttonSecondaryBorderInversePressed),
65-
.disabled: Button.StateStyle(textColor: .textButtonSecondaryInverse.withAlphaComponent(0.5),
66-
backgroundColor: .buttonSecondaryBackgroundBrand.withAlphaComponent(0.5),
67-
borderColor: .buttonSecondaryBorderInverse.withAlphaComponent(0.5)),
68-
.loading: Button.StateStyle(textColor: .textButtonSecondaryInverse,
69-
backgroundColor: .buttonSecondaryBackgroundBrand,
70-
borderColor: .buttonSecondaryBorderInverse)
59+
.normal: Button.StateStyle(
60+
textColor: .textButtonSecondaryInverse,
61+
backgroundColor: .buttonSecondaryBackgroundBrand,
62+
borderColor: .buttonSecondaryBorderInverse
63+
),
64+
.selected: Button.StateStyle(
65+
textColor: .textButtonSecondaryInversePressed,
66+
backgroundColor: .buttonSecondaryBackgroundBrandPressed,
67+
borderColor: .buttonSecondaryBorderInversePressed
68+
),
69+
.disabled: Button.StateStyle(
70+
textColor: .textButtonSecondaryInverse.withAlphaComponent(0.5),
71+
backgroundColor: .buttonSecondaryBackgroundBrand.withAlphaComponent(0.5),
72+
borderColor: .buttonSecondaryBorderInverse.withAlphaComponent(0.5)
73+
),
74+
.loading: Button.StateStyle(
75+
textColor: .textButtonSecondaryInverse,
76+
backgroundColor: .buttonSecondaryBackgroundBrand,
77+
borderColor: .buttonSecondaryBorderInverse
78+
)
7179
]
7280
)
7381
}

0 commit comments

Comments
 (0)