title: Navigation bar: "hide" title but keep it for the subsequent back button
body: <p>In my app I have two SwiftUI views, let's call them View1 and View2. View1 is started as a UIHostingController and has a &quot;Go to View2&quot; button which pushes View2 on the navigation controller of the mentioned UIHostingController (no SwiftUI Navigation Links etc).
  View1 has to display the navigation bar because it has a custom &quot;Exit&quot; button in the toolbar. View2 should show &quot;&lt;Back&quot; navigation bar button which leads to the View1.</p>
  <p>Problem:</p>
  <ul>
  <li><p>If I set navigation bar title of the UIHostingController to &quot;&quot;, then
  there will be no &quot;&lt;Back&quot; but &quot;&lt;&quot;.</p>
  </li>
  <li><p>If I set navigation bar title of    the UIHostingController to
  &quot;Back&quot;, then after coming back View1 will show &quot;Back&quot; in the
  middle of the navigation bar.</p>
  </li>
  <li><p>If I hide the navigation bar at first, then &quot;Exit&quot; button will not be
  shown.</p>
  </li>
  </ul>
  <p>So, to sum up, what I need is:
  View1 shows navigation bar only with the &quot;Exit&quot; toolbar button, no title.
  View2 shows only &quot;&lt;Back&quot; navigation bar button</p>
  <p>How can I achieve it ?</p>
  <p><strong>Note: the whole navigation logic is done with UIKit. View1 notifies the view model which calls a delegate which pushes View2 on the navigation stack. There are no SwiftUI navigation links etc.</strong></p>