diff --git a/.swiftlint.yml b/.swiftlint.yml index fc762e7656..92d150f368 100644 --- a/.swiftlint.yml +++ b/.swiftlint.yml @@ -37,6 +37,7 @@ disabled_rules: - type_name - void_function_in_ternary - switch_case_alignment + - unavailable_condition excluded: - Carthage - Pods diff --git a/iOSClient/Share/NCShareLinkCell.swift b/iOSClient/Share/NCShareLinkCell.swift index 9d18291873..e99d66e9de 100644 --- a/iOSClient/Share/NCShareLinkCell.swift +++ b/iOSClient/Share/NCShareLinkCell.swift @@ -47,6 +47,11 @@ class NCShareLinkCell: UITableViewCell { menuButton.isHidden = isInternalLink descriptionLabel.isHidden = !isInternalLink copyButton.isHidden = !isInternalLink && tableShare == nil + if #available(iOS 18.0, *) { + // use NCShareLinkCell image + } else { + copyButton.setImage(UIImage(systemName: "doc.on.doc")?.withTintColor(.label, renderingMode: .alwaysOriginal), for: .normal) + } copyButton.accessibilityLabel = NSLocalizedString("_copy_", comment: "") menuButton.accessibilityLabel = NSLocalizedString("_more_", comment: "")