I am seeing what is presumably the same issue, only with @ObservedObject instead of @State, and the alert is popping up not just twice but three times. async dodges the problem for me as well, though I do not understand exactly why. I do notice that debugging print statements added to the view’s body demonstrate that it is being executed exactly once for each time the alert appears.
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: