title: SwiftUI: Tap target for Navigation Bar Button misaligned after dismissing a sheet
body: <p>I am noticing a rather strange, possibly buggy behavior in SwiftUI using iOS 13.3.1 and earlier. To demonstrate, this very simple scenario:</p>
  
  <p><strong>Full sample code:</strong></p>
  
  <pre><code>import SwiftUI
  
  struct ContentView: View {
      @State var showingSheet: Bool = false
      var body: some View {
          NavigationView {
              Text("ParentView")
                  .navigationBarItems(trailing: Button(action: { self.showingSheet = true }) { Text("Show") })
          }.sheet(isPresented: $showingSheet) { SheetView() }
      }
  }
  
  struct SheetView: View {
      @Environment(\.presentationMode) var presentationMode
      var body: some View {
          VStack {
              Text("Sheet content")
              Button(action: { self.presentationMode.wrappedValue.dismiss() }) { Text("Hide") }
          }
      }
  }
  </code></pre>
  
  <hr>
  
  <p><strong>To reproduce:</strong></p>
  
  <ol>
  <li>Launch the app on iOS 13.4.1</li>
  <li>Tap the "Show" button</li>
  <li>(The sheet shows, as expected)</li>
  <li>Dismiss the sheet using the "Hide" button</li>
  <li>(The sheet is dismissed, as expected)</li>
  <li>Try to show the sheet again, using the "Show" button</li>
  </ol>
  
  <p><strong>Expected result</strong>: The sheet shows again.</p>
  
  <p><strong>Actual result</strong>: The tap target of the "Show" button is shifted some pixels to the bottom, resulting in the action not triggering. This can also be observed in the View Hierarchy Debugger:</p>
  
  <p><a href="https://i.stack.imgur.com/mVJYT.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/mVJYT.jpg" alt="Misaligned Views"></a></p>
  
  <p><strong>Other observations:</strong></p>
  
  <ul>
  <li>This does not happen when dismissing the sheet by dragging it to the bottom of the screen</li>
  <li>This occurs only if large navigation item titles are activated for the hosting view, it's fine when using an inline title</li>
  </ul>
  
  <hr>
  
  <p>So now I'm here wondering: Am I making a mistake, or is this an actual SwiftUI bug? If so, is there an easy workaround? I searched SO for similar issues, but didn't come across any that were identical.</p>
  
  <p><em>Edit:</em> I filed this with Apple as Radar Feedback FB7560960 in the meantime.</p>
  
  <p><em>Edit 2:</em> Still happening in 13.4.1.</p>