When using the new DocumentGroupLaunchScene in a document-based app, the documents are opened without a navigation bar. The document title and back button are not visible and the user cannot return back to the document browser to open another document.
@main
struct MyApp: App {
var body: some Scene {
DocumentGroup(newDocument: MyDocument()) { file in
ContentView(document: file.$document)
}
DocumentGroupLaunchScene {
NewDocumentButton("Start")
} background: {
Color.blue
}
}
}
When I launch the app and create a document, I see this:
When I comment out DocumentGroupLaunchScene code, I get the navigation bar:
I'm using Xcode 16.0 beta 6 and a device with iOS 18.0 beta 8. I've filed a bug report to Apple.
Does somebody know a workaround?