From: Andrej Mihajlov Date: Wed, 6 Jan 2021 10:57:40 +0000 (+0100) Subject: UI: iOS: Disable "copy" action on on-demand cells X-Git-Tag: 1.0.13-24~9 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6c4f4109eb1b8d3b4345549986ba10ad4c057785;p=thirdparty%2Fwireguard-apple.git UI: iOS: Disable "copy" action on on-demand cells Signed-off-by: Andrej Mihajlov --- diff --git a/Sources/WireGuardApp/UI/iOS/ViewController/TunnelDetailTableViewController.swift b/Sources/WireGuardApp/UI/iOS/ViewController/TunnelDetailTableViewController.swift index 696136f..358fac4 100644 --- a/Sources/WireGuardApp/UI/iOS/ViewController/TunnelDetailTableViewController.swift +++ b/Sources/WireGuardApp/UI/iOS/ViewController/TunnelDetailTableViewController.swift @@ -395,6 +395,7 @@ extension TunnelDetailTableViewController { let cell: KeyValueCell = tableView.dequeueReusableCell(for: indexPath) cell.key = field.localizedUIString cell.value = onDemandViewModel.localizedInterfaceDescription + cell.copyableGesture = false return cell } else { assert(field == .ssid) @@ -402,6 +403,7 @@ extension TunnelDetailTableViewController { let cell: KeyValueCell = tableView.dequeueReusableCell(for: indexPath) cell.key = field.localizedUIString cell.value = onDemandViewModel.ssidOption.localizedUIString + cell.copyableGesture = false return cell } else { let cell: ChevronCell = tableView.dequeueReusableCell(for: indexPath)