I have a simple view of the settings table, which is the first view of the UINavigationController.
I present the UINavigationController settings using the .FormSheet modalPresentationStyle, which means that on the iPhone it takes up the whole screen, while on the iPad it is displayed in the center.
Now I want one of the lines in the settings table to push the SFSafariViewController onto the navigation stack.
This works fine on the iPhone, but on the iPad it is not. IPad Screenshot:

Notice that part of the SFSafariViewController navigation bar appears below the navigation bar (with the back button). See the red rectangle in the image.
let urlText = "http://www.apple.com" let url = NSURL(string: urlText)! let safariViewController = SFSafariViewController(URL: url) self.navigationController?.pushViewController(safariViewController, animated: true)
On iPhone, you donβt see the SFSafariViewController navigation bar at all - this is perfect for my use.
Any magic setting to make this work right?
source share