title: Hide MasterView in SwiftUI on iPads programmatically
body: <p>I would like to use this SplitView button on iPads programmatically:</p>
  <p><a href="https://i.stack.imgur.com/I44ug.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/I44ug.png" alt="button" /></a></p>
  <p>I don't mean to deactivate the SplitView in general with <code>.navigationViewStyle(StackNavigationViewStyle())</code> but to hide the MasterView in special situations while being inside the view which is what this automatically generated button does.</p>
  <p>Is there a way in SwiftUI to do so?</p>