Getting back from Splitview

In this app, I have:

  • a VC as entry point (root)
  • which segues (push) to a SplitViewController

On iPad, when I get into the splitView, I can get back to the root by dragging down the split view.

But on iPhone, this does not work: even though presentation is .automatic, Splitview covers all screen. No way to get back.

I tried to create a back button in the detail views… Could not get it.

What is the best way to do this ?

  • is there a setup for the initial segue or the views presentation modes to allow pop back ?
  • can I add a back button ? Where, calling what action to return ?
  • I cannot embed splitViewController in nav stack …

I would like to have the same solution on both iPhone and iPad…

I did this: add an entry in the masterView left table with code for this row in didSelectRow

            self.dismiss(animated: true, completion: nil)

Seems to work.

Getting back from Splitview
 
 
Q