summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAndrej Mihajlov <and@mullvad.net>2020-09-01 19:26:48 +0200
committerAndrej Mihajlov <and@mullvad.net>2020-09-03 19:45:31 +0200
commitd85f5347bdf2b0542c346414a10915f34e2ea7f8 (patch)
tree4a5efaf274958ae3ba2f21e28087537d850aa625
parent5dbd6f48e76bf2459e740ab5538865df50534126 (diff)
downloadmullvadvpn-d85f5347bdf2b0542c346414a10915f34e2ea7f8.tar.xz
mullvadvpn-d85f5347bdf2b0542c346414a10915f34e2ea7f8.zip
SettingsController: add navigation route to wireguard keys
-rw-r--r--ios/MullvadVPN/SettingsViewController.swift10
1 files changed, 7 insertions, 3 deletions
diff --git a/ios/MullvadVPN/SettingsViewController.swift b/ios/MullvadVPN/SettingsViewController.swift
index 4e625eec17..1c9b618ad2 100644
--- a/ios/MullvadVPN/SettingsViewController.swift
+++ b/ios/MullvadVPN/SettingsViewController.swift
@@ -11,6 +11,7 @@ import UIKit
enum SettingsNavigationRoute {
case account
+ case wireguardKeys
}
class SettingsViewController: UITableViewController {
@@ -56,6 +57,11 @@ class SettingsViewController: UITableViewController {
self.performSegue(
withIdentifier: SegueIdentifier.Settings.showAccount.rawValue,
sender: nil)
+
+ case .wireguardKeys:
+ let controller = WireguardKeysViewController()
+
+ navigationController?.pushViewController(controller, animated: true)
}
}
@@ -78,9 +84,7 @@ class SettingsViewController: UITableViewController {
}
wireguardKeyRow.actionBlock = { [weak self] (indexPath) in
- let controller = WireguardKeysViewController()
-
- self?.navigationController?.pushViewController(controller, animated: true)
+ self?.navigate(to: .wireguardKeys)
}
self.accountRow = accountRow