Skip to content

Commit 9e853a8

Browse files
committed
Set background of cells used in Settings
1 parent adb589f commit 9e853a8

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

WooCommerce/Classes/ViewRelated/ReusableViews/BasicTableViewCell.swift

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ class BasicTableViewCell: UITableViewCell {
55
override func awakeFromNib() {
66
super.awakeFromNib()
77

8+
configureBackground()
89
textLabel?.applyBodyStyle()
910
}
1011

@@ -15,3 +16,10 @@ class BasicTableViewCell: UITableViewCell {
1516
textLabel?.textAlignment = .natural
1617
}
1718
}
19+
20+
21+
private extension BasicTableViewCell {
22+
func configureBackground() {
23+
applyDefaultBackgroundStyle()
24+
}
25+
}

WooCommerce/Classes/ViewRelated/ReusableViews/HeadlineLabelTableViewCell.swift

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,23 @@ final class HeadlineLabelTableViewCell: UITableViewCell {
3232
override func awakeFromNib() {
3333
super.awakeFromNib()
3434

35+
configureBackground()
36+
configureHeadline()
37+
configureBody()
38+
}
39+
}
40+
41+
42+
private extension HeadlineLabelTableViewCell {
43+
func configureBackground() {
44+
applyDefaultBackgroundStyle()
45+
}
46+
47+
func configureHeadline() {
3548
headlineLabel?.applyHeadlineStyle()
49+
}
50+
51+
func configureBody() {
3652
bodyLabel?.applyBodyStyle()
3753
}
3854
}

0 commit comments

Comments
 (0)