File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ public struct Title {
77 public static var text = localizedString ( " SCAN_BARCODE_TITLE " )
88 public static var font = UIFont . boldSystemFont ( ofSize: 17 )
99 public static var color = UIColor . black
10+ public static var backgroundColor = UIColor . white
1011}
1112
1213public struct CloseButton {
Original file line number Diff line number Diff line change @@ -12,13 +12,12 @@ class HeaderView: UIView {
1212 /// Title label.
1313 lazy var label : UILabel = {
1414 let label = UILabel ( )
15- label. backgroundColor = UIColor . white
1615 label. text = Title . text
1716 label. font = Title . font
1817 label. textColor = Title . color
18+ label. backgroundColor = Title . backgroundColor
1919 label. numberOfLines = 1
2020 label. textAlignment = . center
21-
2221 return label
2322 } ( )
2423
@@ -46,7 +45,7 @@ class HeaderView: UIView {
4645 override init ( frame: CGRect ) {
4746 super. init ( frame: frame)
4847
49- backgroundColor = UIColor . white
48+ backgroundColor = Title . backgroundColor
5049
5150 [ label, button] . forEach {
5251 addSubview ( $0)
You can’t perform that action at this time.
0 commit comments