Skip to content

Commit 38a3c07

Browse files
committed
swiftlint fix
1 parent 3baf924 commit 38a3c07

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Sources/ComponentsKit/Components/Badge/UKBadge.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ open class UKBadge: UIView, UKComponent {
4848
self.addSubview(self.titleLabel)
4949

5050
if #available(iOS 17.0, *) {
51-
self.registerForTraitChanges([UITraitUserInterfaceStyle.self]) { (view: Self, _: UITraitCollection) in
51+
self.registerForTraitChanges([UITraitUserInterfaceStyle.self]) { (_: Self, _: UITraitCollection) in
5252
}
5353
}
5454
}
@@ -69,7 +69,7 @@ open class UKBadge: UIView, UKComponent {
6969
self.titleLabel.bottom(self.model.paddings.bottom)
7070
self.titleLabel.trailing(self.model.paddings.trailing)
7171
}
72-
72+
7373
self.titleLabelConstraints.allConstraints.forEach { $0?.priority = .defaultHigh }
7474
}
7575

@@ -90,7 +90,7 @@ open class UKBadge: UIView, UKComponent {
9090
self.titleLabelConstraints.top?.constant = self.model.paddings.top
9191
self.titleLabelConstraints.bottom?.constant = -self.model.paddings.bottom
9292
self.titleLabelConstraints.trailing?.constant = -self.model.paddings.trailing
93-
93+
9494
self.invalidateIntrinsicContentSize()
9595
self.setNeedsLayout()
9696
}
@@ -103,7 +103,7 @@ open class UKBadge: UIView, UKComponent {
103103

104104
let totalWidthPadding = self.model.paddings.leading + self.model.paddings.trailing
105105
let totalHeightPadding = self.model.paddings.top + self.model.paddings.bottom
106-
106+
107107
let width = contentSize.width + totalWidthPadding
108108
let height = contentSize.height + totalHeightPadding
109109

0 commit comments

Comments
 (0)