NavigationBar Item doesn't appear anymore after screen rotation SwiftUI iOS 14

533 views Asked by At

I have a simple pattern : a list view with a detail view. Both have navigation bar item.

Problem: Only on the detail view when I rotate the screen to landscape, the navigation bar item disappears and will never appear anymore even If I rotate back. This bug occurs only on iOS14.

ListView :

NavigationView{
    ZStack{
    (List and NavigationLink...)
    }.navigationBarItems(trailing: Button(...))
    .sheet(someSheet...)
}.navigationViewStyle(StackNavigationViewStyle())

DetailView :

ZStack {
    (someView...)
    .navigationBarTitle(...)
    .navigationBarItems(trailing: Button(...))
    .sheet(someSheet...)
}
0

There are 0 answers