Passing @SceneStorage to new window

I have a simple WindowGroup based application. Main view have two @SceneStorage values:

@SceneStorage("entriesDisplayScale") private var entriesDisplayScale = 0.5
@SceneStorage("listMode") private var listMode = false

State is stored for every window correctly.

Now I would want that when I create a new window, it could use either the default settings if none available; or settings of the window that was selected when I created the new one; or settings of the last window closed.

What would be the best way to achieve this?

Passing @SceneStorage to new window
 
 
Q