aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrej Mihajlov <and@mullvad.net>2021-01-06 11:57:40 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2021-01-11 13:09:41 +0100
commit6c4f4109eb1b8d3b4345549986ba10ad4c057785 (patch)
tree09c95fd33ee934266c763b0cad7d75fc2778e336
parentKit: netcfg: add explicit IP mask routes (diff)
downloadwireguard-apple-6c4f4109eb1b8d3b4345549986ba10ad4c057785.tar.xz
wireguard-apple-6c4f4109eb1b8d3b4345549986ba10ad4c057785.zip
UI: iOS: Disable "copy" action on on-demand cells
Signed-off-by: Andrej Mihajlov <and@mullvad.net>
-rw-r--r--Sources/WireGuardApp/UI/iOS/ViewController/TunnelDetailTableViewController.swift2
1 files changed, 2 insertions, 0 deletions
diff --git a/Sources/WireGuardApp/UI/iOS/ViewController/TunnelDetailTableViewController.swift b/Sources/WireGuardApp/UI/iOS/ViewController/TunnelDetailTableViewController.swift
index 696136f8..358fac47 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)