From bb16d3ebc8f47c9b6d41b00ef6f8e89e112ce774 Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Tue, 15 Oct 2019 14:51:04 +0200 Subject: [PATCH] iOS: UI: Make edit views full screen modal This might be worse on the iPad. Oh well. Signed-off-by: Jason A. Donenfeld --- .../UI/iOS/ViewController/TunnelDetailTableViewController.swift | 2 +- .../UI/iOS/ViewController/TunnelsListTableViewController.swift | 2 +- 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) }