From 204cbc284aca8896a9076b5e22a55b1ca8f11e1c Mon Sep 17 00:00:00 2001 From: Roopesh Chander Date: Thu, 25 Oct 2018 12:11:05 +0530 Subject: [PATCH] iPad: Make sure the navigation bar is visible in the detail view Signed-off-by: Roopesh Chander --- .../WireGuard/UI/iOS/TunnelsListTableViewController.swift | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/WireGuard/WireGuard/UI/iOS/TunnelsListTableViewController.swift b/WireGuard/WireGuard/UI/iOS/TunnelsListTableViewController.swift index e88ec91..4b924b1 100644 --- a/WireGuard/WireGuard/UI/iOS/TunnelsListTableViewController.swift +++ b/WireGuard/WireGuard/UI/iOS/TunnelsListTableViewController.swift @@ -98,7 +98,8 @@ extension TunnelsListTableViewController: TunnelEditTableViewControllerDelegate guard let tunnelsManager = tunnelsManager else { return } let tunnelDetailVC = TunnelDetailTableViewController(tunnelsManager: tunnelsManager, tunnel: tunnel) - showDetailViewController(tunnelDetailVC, sender: self) // Shall get propagated up to the split-vc + let tunnelDetailNC = UINavigationController(rootViewController: tunnelDetailVC) + showDetailViewController(tunnelDetailNC, sender: self) // Shall get propagated up to the split-vc } func tunnelEditingCancelled() { // Nothing to do here @@ -134,7 +135,8 @@ extension TunnelsListTableViewController { let tunnel = tunnelsManager.tunnel(at: indexPath.row) let tunnelDetailVC = TunnelDetailTableViewController(tunnelsManager: tunnelsManager, tunnel: tunnel) - showDetailViewController(tunnelDetailVC, sender: self) // Shall get propagated up to the split-vc + let tunnelDetailNC = UINavigationController(rootViewController: tunnelDetailVC) + showDetailViewController(tunnelDetailNC, sender: self) // Shall get propagated up to the split-vc } }