How to set a default detail view on MacOS

When developing a master/detail application, the usual scenario is to have a list as a master view. The user selects an item in the list and the details appear in a detail view.

In my application, a user chooses a menu option to read items from a text file and to populate the list in the master view. This works well and when the user selects an item in the list, the details appear in the detail view.

However, initially, no item is selected. As a consequence there is no detail view. The entire window is occupied by the list in the master view. I would like to at least show an empty detail view when no item is selected in the master view. However, I haven't figured out how to do this.

Any thoughts?
Add a second View in the body of
Code Block
NavigationView {
MasterList()
DefaultDetailView()
}

How to set a default detail view on MacOS
 
 
Q