Skip to content

Commit fdcd599

Browse files
committed
Create a constant for button title and image spacing.
1 parent 2558915 commit fdcd599

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

WooCommerce/Classes/ViewRelated/BottomButtonContainer/BottomButtonContainerView.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ private extension BottomButtonContainerView {
7878

7979
if let image = viewModel.image {
8080
button.setImage(image, for: .normal)
81-
button.distributeTitleAndImage(spacing: 16)
81+
button.distributeTitleAndImage(spacing: Constants.buttonTitleAndImageSpacing)
8282
}
8383
}
8484

@@ -90,5 +90,6 @@ private extension BottomButtonContainerView {
9090
private extension BottomButtonContainerView {
9191
enum Constants {
9292
static let buttonMarginInsets = UIEdgeInsets(top: 16, left: 16, bottom: 16, right: 16)
93+
static let buttonTitleAndImageSpacing: CGFloat = 16
9394
}
9495
}

0 commit comments

Comments
 (0)