Skip to content

Commit 42c98a9

Browse files
committed
update badge color init so dynamic appearance is correctly applied
1 parent 80f8cfc commit 42c98a9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

WooCommerce/Classes/Extensions/UILabel+SalesChannel.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ private extension UILabel {
2323
enum Layout {
2424
static let borderWidth = CGFloat(0.0)
2525
static let cornerRadius = CGFloat(4.0)
26-
static let salesChannelLabelTextColor = UIColor(color: .wooCommercePurple(.shade80))
27-
static let salesChannelLabelBackgroundColor = UIColor(color: .wooCommercePurple(.shade10))
26+
static let salesChannelLabelTextColor = UIColor.wooCommercePurple(.shade80)
27+
static let salesChannelLabelBackgroundColor = UIColor.wooCommercePurple(.shade10)
2828
}
2929
}

0 commit comments

Comments
 (0)