From 0dd22ca45a9fdb359af22e4645a02cd9c581d353 Mon Sep 17 00:00:00 2001 From: Roopesh Chander Date: Mon, 18 Mar 2019 14:02:54 +0530 Subject: [PATCH] iOS: Tunnel edit: Add missing enum values Signed-off-by: Roopesh Chander --- .../UI/iOS/ViewController/TunnelEditTableViewController.swift | 2 ++ 1 file changed, 2 insertions(+) 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))