In the session "App essentials in SwiftUI" around minute 8, the presenter is showing how switching between app windows does not affect the selection state. This works really well.
The problem as you can see on the video is that the selection on the list don't persist. If you look closely every time he switches between apps the list is now unselected.
I tried solving this problem using @SceneStorage property wrapper - as suggested - but that didn't work.
The problem as you can see on the video is that the selection on the list don't persist. If you look closely every time he switches between apps the list is now unselected.
I tried solving this problem using @SceneStorage property wrapper - as suggested - but that didn't work.