Good questions.

  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.
Left: VStack, Right: HStack

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!

--

--

--

WWDC21 Scholar. I like to read manga and write about Swift. Check out my app, Find — look for text in real life, with outrageous speed. getfind.app

Love podcasts or audiobooks? Learn on the go with our new 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
Andrew Zheng

Andrew Zheng

WWDC21 Scholar. I like to read manga and write about Swift. Check out my app, Find — look for text in real life, with outrageous speed. getfind.app

More from Medium

StarLedger X Genesis Cloud

Reduce Denials with Your Registration and Scheduling Process — OmniMD (69/60 chars)

FADO Go removes all barriers of cross-border payments, optimizing every experience for our beloved…

Rawrshak Alpha Summary