Skip to content

Commit 3d9760b

Browse files
committed
Remove unnecessary CGFloat wrapper
1 parent e67f70e commit 3d9760b

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

WooCommerce/Classes/ViewRelated/CardPresentPayments/CardPresentPaymentsModalViewController.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ private extension CardPresentPaymentsModalViewController {
296296
auxiliaryButton.setImage(viewModel.auxiliaryButtonimage, for: .normal)
297297
if viewModel.auxiliaryButtonimage != nil {
298298
var config = UIButton.Configuration.plain()
299-
config.imagePadding = CGFloat(Constants.buttonTitleAndImageSpacing)
299+
config.imagePadding = Constants.buttonTitleAndImageSpacing
300300
auxiliaryButton.configuration = config
301301
}
302302
view.layoutIfNeeded()

WooCommerce/Classes/ViewRelated/Orders/Order Details/Customer Section/CustomerInfoTableViewCell.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ private extension CustomerInfoTableViewCell {
127127
addButton.contentVerticalAlignment = .bottom
128128
var configuration = UIButton.Configuration.plain()
129129
configuration.contentInsets = .init(.zero)
130-
configuration.imagePadding = CGFloat(Constants.buttonTitleAndImageSpacing)
130+
configuration.imagePadding = Constants.buttonTitleAndImageSpacing
131131
addButton.configuration = configuration
132132
addButton.addTarget(self, action: #selector(addButtonTapped), for: .touchUpInside)
133133
}

WooCommerce/Classes/ViewRelated/Orders/Order Details/Customer Section/CustomerNoteTableViewCell.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ private extension CustomerNoteTableViewCell {
130130
addButton.contentVerticalAlignment = .bottom
131131
var configuration = UIButton.Configuration.plain()
132132
configuration.contentInsets = .init(.zero)
133-
configuration.imagePadding = CGFloat(Constants.buttonTitleAndImageSpacing)
133+
configuration.imagePadding = Constants.buttonTitleAndImageSpacing
134134
addButton.configuration = configuration
135135
addButton.addTarget(self, action: #selector(addButtonTapped), for: .touchUpInside)
136136
}

0 commit comments

Comments
 (0)