Frame auto save in SwiftUI App

I have a simple SwiftUI app with a Settings View. When the view is displayed (via Preferences menu item) I move it to a different screen position.

After ending the app and re-starting it, the Settings View is displayed at original position rather than new position.

If I look at the default preferences for the app, there is an entry for:

"NSWindow Frame com_apple_SwiftUI_Settings_window"

which has the modified screen position but it appears that the app does not use this position when displaying Settings View.

Is there some other way to assign Settings window position?