diff --git a/.swift-format b/.swift-format index 2458a4b..3631561 100644 --- a/.swift-format +++ b/.swift-format @@ -4,5 +4,6 @@ "spaces" : 4 }, "indentWidth": 4, - "maximumBlankLines": 1 + "maximumBlankLines": 1, + "lineBreakBeforeEachArgument": true } diff --git a/Package.swift b/Package.swift index 29b6ef6..3218a42 100644 --- a/Package.swift +++ b/Package.swift @@ -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. @@ -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"] + ), ] ) diff --git a/Sources/BitcoinUI/ButtonStyles.swift b/Sources/BitcoinUI/ButtonStyles.swift index b368b21..dca2742 100644 --- a/Sources/BitcoinUI/ButtonStyles.swift +++ b/Sources/BitcoinUI/ButtonStyles.swift @@ -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 @@ -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 ) { @@ -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