Skip to content

Commit

Permalink
lineBreakBeforeEachArgument
Browse files Browse the repository at this point in the history
  • Loading branch information
reez committed Aug 28, 2023
1 parent 125184e commit 941aa83
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 12 deletions.
3 changes: 2 additions & 1 deletion .swift-format
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@
"spaces" : 4
},
"indentWidth": 4,
"maximumBlankLines": 1
"maximumBlankLines": 1,
"lineBreakBeforeEachArgument": true
}
9 changes: 6 additions & 3 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ let package = Package(
// Products define the executables and libraries a package produces, and make them visible to other packages.
.library(
name: "BitcoinUI",
targets: ["BitcoinUI"])
targets: ["BitcoinUI"]
)
],
dependencies: [
// Dependencies declare other packages that this package depends on.
Expand All @@ -23,10 +24,12 @@ let package = Package(
// Targets can depend on other targets in this package, and on products in packages this package depends on.
.target(
name: "BitcoinUI",
dependencies: []),
dependencies: []
),
.testTarget(
name: "BitcoinUITests",
dependencies: ["BitcoinUI"]),
dependencies: ["BitcoinUI"]
),
]
)

Expand Down
24 changes: 16 additions & 8 deletions Sources/BitcoinUI/ButtonStyles.swift
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,14 @@ public struct BitcoinFilled: ButtonStyle {
let isCapsule: Bool

public init(
width: CGFloat = defaultButtonWidth, height: CGFloat = defaultButtonHeight,
cornerRadius: CGFloat = defaultCornerRadius, tintColor: Color = defaultTintColor,
textColor: Color = defaultTextColor, disabledFillColor: Color = defaultDisabledFillColor,
disabledTextColor: Color = defaultDisabledTextColor, isCapsule: Bool = false
width: CGFloat = defaultButtonWidth,
height: CGFloat = defaultButtonHeight,
cornerRadius: CGFloat = defaultCornerRadius,
tintColor: Color = defaultTintColor,
textColor: Color = defaultTextColor,
disabledFillColor: Color = defaultDisabledFillColor,
disabledTextColor: Color = defaultDisabledTextColor,
isCapsule: Bool = false
) {
self.width = width
self.height = height
Expand Down Expand Up @@ -113,8 +117,10 @@ public struct BitcoinOutlined: ButtonStyle {
let isCapsule: Bool

public init(
width: CGFloat = defaultButtonWidth, height: CGFloat = defaultButtonHeight,
cornerRadius: CGFloat = defaultCornerRadius, tintColor: Color = defaultTintColor,
width: CGFloat = defaultButtonWidth,
height: CGFloat = defaultButtonHeight,
cornerRadius: CGFloat = defaultCornerRadius,
tintColor: Color = defaultTintColor,
disabledColor: Color = defaultDisabledOutlineColor,
isCapsule: Bool = false
) {
Expand Down Expand Up @@ -177,8 +183,10 @@ public struct BitcoinPlain: ButtonStyle {
let disabledColor: Color

public init(
width: CGFloat = defaultButtonWidth, height: CGFloat = defaultButtonHeight,
tintColor: Color = defaultTintColor, disabledColor: Color = defaultDisabledTextColor
width: CGFloat = defaultButtonWidth,
height: CGFloat = defaultButtonHeight,
tintColor: Color = defaultTintColor,
disabledColor: Color = defaultDisabledTextColor
) {
self.width = width
self.height = height
Expand Down

0 comments on commit 941aa83

Please sign in to comment.