aboutsummaryrefslogtreecommitdiffstats
path: root/WireGuard
diff options
context:
space:
mode:
authorRoopesh Chander <roop@roopc.net>2018-10-25 13:23:09 +0530
committerRoopesh Chander <roop@roopc.net>2018-10-27 15:13:02 +0530
commitf845d7557acc5beae1998589a3fbb47a4378342a (patch)
treecec4e8811305715fa4fb20ad0880ebc71b2d4588 /WireGuard
parentiPad: Make sure the navigation bar is visible in the detail view (diff)
downloadwireguard-apple-f845d7557acc5beae1998589a3fbb47a4378342a.tar.xz
wireguard-apple-f845d7557acc5beae1998589a3fbb47a4378342a.zip
iPad: Fix modal presentation style
Signed-off-by: Roopesh Chander <roop@roopc.net>
Diffstat (limited to 'WireGuard')
-rw-r--r--WireGuard/WireGuard/UI/iOS/TunnelDetailTableViewController.swift1
-rw-r--r--WireGuard/WireGuard/UI/iOS/TunnelEditTableViewController.swift2
-rw-r--r--WireGuard/WireGuard/UI/iOS/TunnelsListTableViewController.swift1
3 files changed, 2 insertions, 2 deletions
diff --git a/WireGuard/WireGuard/UI/iOS/TunnelDetailTableViewController.swift b/WireGuard/WireGuard/UI/iOS/TunnelDetailTableViewController.swift
index b4ae135..769c348 100644
--- a/WireGuard/WireGuard/UI/iOS/TunnelDetailTableViewController.swift
+++ b/WireGuard/WireGuard/UI/iOS/TunnelDetailTableViewController.swift
@@ -47,6 +47,7 @@ class TunnelDetailTableViewController: UITableViewController {
let editVC = TunnelEditTableViewController(tunnelsManager: tunnelsManager, tunnel: tunnel)
editVC.delegate = self
let editNC = UINavigationController(rootViewController: editVC)
+ editNC.modalPresentationStyle = .formSheet
present(editNC, animated: true)
}
}
diff --git a/WireGuard/WireGuard/UI/iOS/TunnelEditTableViewController.swift b/WireGuard/WireGuard/UI/iOS/TunnelEditTableViewController.swift
index 1054cfa..e155a61 100644
--- a/WireGuard/WireGuard/UI/iOS/TunnelEditTableViewController.swift
+++ b/WireGuard/WireGuard/UI/iOS/TunnelEditTableViewController.swift
@@ -36,7 +36,6 @@ class TunnelEditTableViewController: UITableViewController {
tunnel = t
tunnelViewModel = TunnelViewModel(tunnelConfiguration: t.tunnelConfiguration)
super.init(style: .grouped)
- self.modalPresentationStyle = .formSheet
}
init(tunnelsManager tm: TunnelsManager, tunnelConfiguration: TunnelConfiguration?) {
@@ -46,7 +45,6 @@ class TunnelEditTableViewController: UITableViewController {
tunnel = nil
tunnelViewModel = TunnelViewModel(tunnelConfiguration: tunnelConfiguration)
super.init(style: .grouped)
- self.modalPresentationStyle = .formSheet
}
required init?(coder aDecoder: NSCoder) {
diff --git a/WireGuard/WireGuard/UI/iOS/TunnelsListTableViewController.swift b/WireGuard/WireGuard/UI/iOS/TunnelsListTableViewController.swift
index 4b924b1..08b8145 100644
--- a/WireGuard/WireGuard/UI/iOS/TunnelsListTableViewController.swift
+++ b/WireGuard/WireGuard/UI/iOS/TunnelsListTableViewController.swift
@@ -79,6 +79,7 @@ class TunnelsListTableViewController: UITableViewController {
let editVC = TunnelEditTableViewController(tunnelsManager: tunnelsManager, tunnelConfiguration: tunnelConfiguration)
editVC.delegate = self
let editNC = UINavigationController(rootViewController: editVC)
+ editNC.modalPresentationStyle = .formSheet
self.present(editNC, animated: true)
}