]> git.ipfire.org Git - thirdparty/wireguard-apple.git/commitdiff
UI: iOS: Disable "copy" action on on-demand cells
authorAndrej Mihajlov <and@mullvad.net>
Wed, 6 Jan 2021 10:57:40 +0000 (11:57 +0100)
committerJason A. Donenfeld <Jason@zx2c4.com>
Mon, 11 Jan 2021 12:09:41 +0000 (13:09 +0100)
Signed-off-by: Andrej Mihajlov <and@mullvad.net>
Sources/WireGuardApp/UI/iOS/ViewController/TunnelDetailTableViewController.swift

index 696136f8a2b27d2834513d0edbe9098e1136fab1..358fac474913e6b9709ed1b21e065b3017724e18 100644 (file)
@@ -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)