@@ -789,9 +789,9 @@ class GetLinkViewController: UIViewController {
789
789
private func updateHeaderViewForSingleItem( forHeader header: inout GenericHeaderFooterView , forSection sectionType: GetLinkTableViewSection ) {
790
790
switch sectionType {
791
791
case . link:
792
- header. configureTitle ( Strings . Localizable. link, color: TokenColors . Text. secondary, topDistance: 17 , isTopSeparatorVisible: false , isBottomSeparatorVisible: true )
792
+ header. configure ( title : Strings . Localizable. link, color: TokenColors . Text. secondary, topDistance: 17 , isTopSeparatorVisible: false , isBottomSeparatorVisible: true )
793
793
case . key:
794
- header. configureTitle ( Strings . Localizable. key, color: TokenColors . Text. secondary, topDistance: 17 , isTopSeparatorVisible: false , isBottomSeparatorVisible: true )
794
+ header. configure ( title : Strings . Localizable. key, color: TokenColors . Text. secondary, topDistance: 17 , isTopSeparatorVisible: false , isBottomSeparatorVisible: true )
795
795
case . decryptKeySeparate:
796
796
header. configure ( title: nil , topDistance: 10.0 , isTopSeparatorVisible: false , isBottomSeparatorVisible: true )
797
797
case . expiryDate:
@@ -851,6 +851,7 @@ class GetLinkViewController: UIViewController {
851
851
footer. titleLabel. textAlignment = . center
852
852
footer. configure (
853
853
title: Strings . Localizable. tapToCopy,
854
+ color: TokenColors . Text. secondary,
854
855
topDistance: 4 ,
855
856
isTopSeparatorVisible: true ,
856
857
isBottomSeparatorVisible: false
@@ -988,8 +989,8 @@ extension GetLinkViewController: UITableViewDelegate {
988
989
}
989
990
990
991
header. titleLabel. textAlignment = . left
991
- header. configureTitle (
992
- Strings . Localizable. link,
992
+ header. configure (
993
+ title : Strings . Localizable. link,
993
994
color: TokenColors . Text. secondary,
994
995
topDistance: section == 1 ? 17.0 : 25.0 ,
995
996
isTopSeparatorVisible: false , isBottomSeparatorVisible: true
@@ -1136,14 +1137,14 @@ extension GetLinkViewController: MEGARestoreDelegate {
1136
1137
}
1137
1138
1138
1139
private extension GenericHeaderFooterView {
1139
- func configureTitle (
1140
- _ text : String ,
1140
+ func configure (
1141
+ title : String ,
1141
1142
color: UIColor ,
1142
1143
topDistance: CGFloat ,
1143
1144
isTopSeparatorVisible: Bool ,
1144
1145
isBottomSeparatorVisible: Bool
1145
1146
) {
1146
- let attributedString = NSMutableAttributedString ( string: text , attributes: [ NSAttributedString . Key. foregroundColor: color as Any ] )
1147
+ let attributedString = NSMutableAttributedString ( string: title , attributes: [ NSAttributedString . Key. foregroundColor: color as Any ] )
1147
1148
configure ( attributedTitle: attributedString, topDistance: topDistance, isTopSeparatorVisible: isTopSeparatorVisible, isBottomSeparatorVisible: isBottomSeparatorVisible)
1148
1149
}
1149
1150
}
0 commit comments