Skip to content

Commit cec99ea

Browse files
committed
SAO-2419: Fix the color of "Tap to copy" footer
1 parent 3c29fa3 commit cec99ea

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

iMEGA/Cloud drive/GetLink/GetLinkViewController.swift

+8-7
Original file line numberDiff line numberDiff line change
@@ -789,9 +789,9 @@ class GetLinkViewController: UIViewController {
789789
private func updateHeaderViewForSingleItem(forHeader header: inout GenericHeaderFooterView, forSection sectionType: GetLinkTableViewSection) {
790790
switch sectionType {
791791
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)
793793
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)
795795
case .decryptKeySeparate:
796796
header.configure(title: nil, topDistance: 10.0, isTopSeparatorVisible: false, isBottomSeparatorVisible: true)
797797
case .expiryDate:
@@ -851,6 +851,7 @@ class GetLinkViewController: UIViewController {
851851
footer.titleLabel.textAlignment = .center
852852
footer.configure(
853853
title: Strings.Localizable.tapToCopy,
854+
color: TokenColors.Text.secondary,
854855
topDistance: 4,
855856
isTopSeparatorVisible: true,
856857
isBottomSeparatorVisible: false
@@ -988,8 +989,8 @@ extension GetLinkViewController: UITableViewDelegate {
988989
}
989990

990991
header.titleLabel.textAlignment = .left
991-
header.configureTitle(
992-
Strings.Localizable.link,
992+
header.configure(
993+
title: Strings.Localizable.link,
993994
color: TokenColors.Text.secondary,
994995
topDistance: section == 1 ? 17.0 : 25.0,
995996
isTopSeparatorVisible: false, isBottomSeparatorVisible: true
@@ -1136,14 +1137,14 @@ extension GetLinkViewController: MEGARestoreDelegate {
11361137
}
11371138

11381139
private extension GenericHeaderFooterView {
1139-
func configureTitle(
1140-
_ text: String,
1140+
func configure(
1141+
title: String,
11411142
color: UIColor,
11421143
topDistance: CGFloat,
11431144
isTopSeparatorVisible: Bool,
11441145
isBottomSeparatorVisible: Bool
11451146
) {
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])
11471148
configure(attributedTitle: attributedString, topDistance: topDistance, isTopSeparatorVisible: isTopSeparatorVisible, isBottomSeparatorVisible: isBottomSeparatorVisible)
11481149
}
11491150
}

0 commit comments

Comments
 (0)