aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoopesh Chander <roop@roopc.net>2019-03-18 14:02:54 +0530
committerJason A. Donenfeld <Jason@zx2c4.com>2019-03-18 14:54:05 -0600
commit42d7641b98571b9dea480b8563fbf65d89568630 (patch)
treea7fcd690dd7ca8dce00219a330cd829d09daedf4
parentmacOS: ButtonedDetailViewController: Set min dimensions (diff)
downloadwireguard-apple-42d7641b98571b9dea480b8563fbf65d89568630.tar.xz
wireguard-apple-42d7641b98571b9dea480b8563fbf65d89568630.zip
iOS: Tunnel edit: Add missing enum values
-rw-r--r--WireGuard/WireGuard/UI/iOS/ViewController/TunnelEditTableViewController.swift2
1 files changed, 2 insertions, 0 deletions
diff --git a/WireGuard/WireGuard/UI/iOS/ViewController/TunnelEditTableViewController.swift b/WireGuard/WireGuard/UI/iOS/ViewController/TunnelEditTableViewController.swift
index 9b9390c..7d360d1 100644
--- a/WireGuard/WireGuard/UI/iOS/ViewController/TunnelEditTableViewController.swift
+++ b/WireGuard/WireGuard/UI/iOS/ViewController/TunnelEditTableViewController.swift
@@ -251,6 +251,8 @@ extension TunnelEditTableViewController {
cell.keyboardType = .numberPad
case .publicKey, .generateKeyPair:
cell.keyboardType = .default
+ case .status, .toggleStatus:
+ fatalError("Unexpected interface field")
}
cell.isValueValid = (!tunnelViewModel.interfaceData.fieldsWithError.contains(field))