Thanks! Good to know they're both valid.
Since this is in a ViewModifier, which couldn't attach to a WindowGroup, there might be some protection? But you never know. Good to a mention in any documentation I write for it.
Perhaps then it is safer to not let one be passed in?
Presumably any Views the ViewModifier would add (like a conditional overlay) would have their own ScenePhases, but would there ever be a situation where the modifier and the view it modifies would have different ScenePhases? Is a view modifier in the same Scene as it's parent view or it's own thing?
Topic:
UI Frameworks
SubTopic:
SwiftUI