diff --git a/WooCommerce/Classes/ViewRelated/BottomSheet/ListSelector/BottomSheetListSelectorSectionHeaderView.swift b/WooCommerce/Classes/ViewRelated/BottomSheet/ListSelector/BottomSheetListSelectorSectionHeaderView.swift index 94181273158..431ae250c1d 100644 --- a/WooCommerce/Classes/ViewRelated/BottomSheet/ListSelector/BottomSheetListSelectorSectionHeaderView.swift +++ b/WooCommerce/Classes/ViewRelated/BottomSheet/ListSelector/BottomSheetListSelectorSectionHeaderView.swift @@ -3,17 +3,20 @@ import UIKit /// Renders a section header for the bottom sheet list selector with a main title label. /// final class BottomSheetListSelectorSectionHeaderView: UITableViewHeaderFooterView { - @IBOutlet private weak var label: UILabel! + @IBOutlet private weak var title: UILabel! + @IBOutlet private weak var subtitle: UILabel! override func awakeFromNib() { super.awakeFromNib() configureMainView() - configureLabel() + configureTitle() + configureSubtitle() } - func configure(text: String?) { - label.text = text + func configure(title: String?, subtitle: String?) { + self.title.text = title + self.subtitle.text = subtitle } } @@ -22,8 +25,13 @@ private extension BottomSheetListSelectorSectionHeaderView { contentView.backgroundColor = .listForeground } - func configureLabel() { - label.applySubheadlineStyle() - label.textColor = .systemColor(.secondaryLabel) + func configureTitle() { + title.applyHeadlineStyle() + title.textColor = .systemColor(.label) + } + + func configureSubtitle() { + subtitle.applySubheadlineStyle() + subtitle.textColor = .systemColor(.secondaryLabel) } } diff --git a/WooCommerce/Classes/ViewRelated/BottomSheet/ListSelector/BottomSheetListSelectorSectionHeaderView.xib b/WooCommerce/Classes/ViewRelated/BottomSheet/ListSelector/BottomSheetListSelectorSectionHeaderView.xib index 6a2818e18c5..793a77ee624 100644 --- a/WooCommerce/Classes/ViewRelated/BottomSheet/ListSelector/BottomSheetListSelectorSectionHeaderView.xib +++ b/WooCommerce/Classes/ViewRelated/BottomSheet/ListSelector/BottomSheetListSelectorSectionHeaderView.xib @@ -1,9 +1,9 @@ - + - + @@ -15,8 +15,14 @@ +