Skip to content

Commit

Permalink
3235 unable to copy link to shared item (#3254)
Browse files Browse the repository at this point in the history
* < ios 18

Signed-off-by: Marino Faggiana <[email protected]>

* lint

Signed-off-by: Marino Faggiana <[email protected]>

---------

Signed-off-by: Marino Faggiana <[email protected]>
  • Loading branch information
marinofaggiana authored Dec 30, 2024
1 parent 70b657e commit 1c4bf38
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions .swiftlint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ disabled_rules:
- type_name
- void_function_in_ternary
- switch_case_alignment
- unavailable_condition
excluded:
- Carthage
- Pods
Expand Down
5 changes: 5 additions & 0 deletions iOSClient/Share/NCShareLinkCell.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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: "")

Expand Down

0 comments on commit 1c4bf38

Please sign in to comment.