Your solution fixes this example. But as environmentObject makes object available to view’s subhierarchy that should not be needed.
And the dependency on Alert is still perplexing.
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: