@@ -5,12 +5,12 @@ import Experiments
55/// This contains a vertical stack view of a title label and a two-column view of labels for top performers data (products and items sold).
66///
77final class TopPerformersSectionHeaderView : UIView {
8- init ( title : String ) {
8+ init ( ) {
99 super. init ( frame: . zero)
1010 translatesAutoresizingMaskIntoConstraints = false
1111
1212 configureView ( )
13- configureStackView ( title : title )
13+ configureStackView ( )
1414 }
1515
1616 required init ? ( coder aDecoder: NSCoder ) {
@@ -23,8 +23,8 @@ private extension TopPerformersSectionHeaderView {
2323 backgroundColor = Constants . backgroundColor
2424 }
2525
26- func configureStackView( title : String ) {
27- let titleView = createTitleLabelContainerView ( title: title)
26+ func configureStackView( ) {
27+ let titleView = createTitleLabelContainerView ( title: Localization . title)
2828 let twoColumnStackView : UIStackView = {
2929 let leftLabelContainer = createColumnLabelContainerView ( labelText: Localization . leftColumn, columnPosition: . left)
3030 let rightLabelContainer = createColumnLabelContainerView ( labelText: Localization . rightColumn, columnPosition: . right)
@@ -127,6 +127,8 @@ private extension TopPerformersSectionHeaderView {
127127//
128128private extension TopPerformersSectionHeaderView {
129129 enum Localization {
130+ static let title = NSLocalizedString ( " Top Performers " ,
131+ comment: " Header label for Top Performers section of My Store tab. " )
130132 static let leftColumn = NSLocalizedString ( " Products " , comment: " Description for Top Performers left column header " )
131133 static let rightColumn = NSLocalizedString ( " Items Sold " , comment: " Description for Top Performers right column header " )
132134 }
0 commit comments