Comment on Xcode Error: displayModeButtonItem is internally managed and not exposed for DoubleColumn style. Returning an empty, disconnected UIBarButtonItem to fulfill the non-null contract It has to be called on the root navigation view of your app. (see here https://developer.apple.com/forums/thread/655338?page=3) UI Frameworks SwiftUI Jul ’21