File tree Expand file tree Collapse file tree 2 files changed +24
-0
lines changed
WooCommerce/Classes/ViewRelated/ReusableViews Expand file tree Collapse file tree 2 files changed +24
-0
lines changed Original file line number Diff line number Diff 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+ }
Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments