Strang behavior When building demo document app using XCode 14

I create a demo document app using document app template:

and I run build to preview the app:

There is two back buttons in navigation bar.

I also cannot find way to hide navigation back button in an document app.

Strang behavior When building demo document app using XCode 14
 
 
Q