1. You’re not supposed to control the scenes. Instead, you’re supposed to control the views. You can use VStack to display views vertically, and HStack to display view horizontally. Then, wrap the main view (the view that contains the child views) in the WindowGroup.

2. I think you’re mixing up scenes with views. Switching from one scene from another is automatically managed, and all you have to use is SceneStorage. (This is basically a way to store the individual state of each scene, for example, the selected tab in a tab bar application.) See App essentials in SwiftUI at 10:56.

3 (a). This is also managed automatically, in response to a user gesture or clicking a menu item.

3 (b). WindowGroup manages all the scenes for you. Yes, it is a set of views, but it does everything automatically (for example, providing multiple-window functionality for iPadOS).

4. Just go with the flow. WindowGroup does everything automatically for you. You can check out these links for more information.

Thanks for the comment!

I like reading manga and writing about Swift. Check out my app, Find — look for text in real life, with outrageous speed. getfind.app

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store