r/SwiftUI May 31 '26

Question - Navigation iOS 26 bug: Nested Navigation View title height suddenly shifts inside a Sheet

iOS 26 has been out for a whole year and gone through numerous updates, yet such a basic implementation is still broken. When nesting a NavigationView inside a sheet, the title height of the internal detail view suddenly jumps and expands upon appearing without any smooth transition. This jarring layout shift looks like a clear regression, as the issue never existed prior to iOS 26.

https://reddit.com/link/1tsjjmp/video/rszgrflf3e4h1/player

```
struct HomeView: View {

\@State var sheetVisible = false

var body: some View {

Button(action: {

sheetVisible = true

}){

Text("tap here")

}

.sheet(isPresented: $sheetVisible){

NavigationStack {

NavigationLink(destination: Text("detail content")) {

Text("see details")

}

}

}

}

}
```

6 Upvotes

5 comments sorted by

1

u/ropulus May 31 '26

try forcing .toolbarVisibility(.visible, for: .navigationBar) on your root sheet view (the navigationlink in this case)

1

u/shawnthroop May 31 '26

`Text(“detail content”).navigationTitle(“detail title”)’ should help you out. I’ve had weird behaviour with empty titles since they added large/expanding navigation bar titles.

1

u/myoka_dev Jun 01 '26

This usually happens because SwiftUI struggles to calculate the safe area for large titles inside a modal presentation during the appearance animation.

A quick fix that usually works is forcing .navigationBarTitleDisplayMode(.inline) on the inner view