Post

Replies

Boosts

Views

Activity

Reply to Not receive onDisappear event on the first WindowGroup
Another way to test this issue is just use the Official "Hello World" example. I just add onDisappear to the first window. WindowGroup("Hello World", id: "modules") { Modules() .environment(model) .onDisappear(){ print("Hello World Window On Disappear") } } .windowStyle(.plain) Run the demo and open either immersive space, then tap the close X button below the Hello World window. And no onDisappear event called.
Jul ’24