title: swift splitViewController programmatically show master view
body: <p>I have project with splitViewController as on image (iPhone version). <a href="https://i.stack.imgur.com/3pbNO.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/3pbNO.png" alt="enter image description here"></a></p>
  
  <p>On masterVC I have tableVC, on detailVC I have some information about items from masterVC.
  On detail VC I have a button. After touching this button I need go back to master view. If I do something like:</p>
  
  <pre><code>_ = navigationController?.popToRootViewController(animated: true)
  </code></pre>
  
  <p>It has no affect. How to go back on masterVC?</p>