Home > AI > IOS > SwiftUI >

(Error fix) [Assert] displayModeButtonItem is internally managed…

Error: [Assert] displayModeButtonItem is internally managed and not exposed for DoubleColumn style. Returning an empty, disconnected UIBarButtonItem to fulfill the non-null contract.

Solution:

NavigationView{
// other code
}
.navigationViewStyle(StackNavigationViewStyle())
// need to be added outside!
Relevant tags:

Leave a Reply