aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2019-10-15 14:51:04 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2019-10-15 14:51:04 +0200
commit4cda40c03fce41e65142441e97f669d21cb02b1d (patch)
tree2f579614ff68498e5ea3045bfadbcf9f7b5ae5af
parentNetworkExtension: don't use exit(0) hack on Catalina (diff)
downloadwireguard-apple-4cda40c03fce41e65142441e97f669d21cb02b1d.tar.xz
wireguard-apple-4cda40c03fce41e65142441e97f669d21cb02b1d.zip
iOS: UI: Make edit views full screen modal
This might be worse on the iPad. Oh well.
-rw-r--r--WireGuard/WireGuard/UI/iOS/ViewController/TunnelDetailTableViewController.swift2
-rw-r--r--WireGuard/WireGuard/UI/iOS/ViewController/TunnelsListTableViewController.swift2
2 files changed, 2 insertions, 2 deletions
diff --git a/WireGuard/WireGuard/UI/iOS/ViewController/TunnelDetailTableViewController.swift b/WireGuard/WireGuard/UI/iOS/ViewController/TunnelDetailTableViewController.swift
index b2dca83..ea432da 100644
--- a/WireGuard/WireGuard/UI/iOS/ViewController/TunnelDetailTableViewController.swift
+++ b/WireGuard/WireGuard/UI/iOS/ViewController/TunnelDetailTableViewController.swift
@@ -120,7 +120,7 @@ class TunnelDetailTableViewController: UITableViewController {
let editVC = TunnelEditTableViewController(tunnelsManager: self.tunnelsManager, tunnel: self.tunnel)
editVC.delegate = self
let editNC = UINavigationController(rootViewController: editVC)
- editNC.modalPresentationStyle = .formSheet
+ editNC.modalPresentationStyle = .fullScreen
self.present(editNC, animated: true)
}
}
diff --git a/WireGuard/WireGuard/UI/iOS/ViewController/TunnelsListTableViewController.swift b/WireGuard/WireGuard/UI/iOS/ViewController/TunnelsListTableViewController.swift
index d58b268..58d98c9 100644
--- a/WireGuard/WireGuard/UI/iOS/ViewController/TunnelsListTableViewController.swift
+++ b/WireGuard/WireGuard/UI/iOS/ViewController/TunnelsListTableViewController.swift
@@ -184,7 +184,7 @@ class TunnelsListTableViewController: UIViewController {
func presentViewControllerForTunnelCreation(tunnelsManager: TunnelsManager) {
let editVC = TunnelEditTableViewController(tunnelsManager: tunnelsManager)
let editNC = UINavigationController(rootViewController: editVC)
- editNC.modalPresentationStyle = .formSheet
+ editNC.modalPresentationStyle = .fullScreen
present(editNC, animated: true)
}