Limited work around for the bug is to create a @State var in StdView.
@State private var alertVis
init(...) {
...
self._alertVis = State(initialValue: HNCModel.instance.alertVis)
}
var body : some View {
VStack {
...
}.alert("text", isPresented: @alertVis) {...}
}
Setting HNCModel.alertVis vis showAlert() shows the alert and there is no 'Attempt to present...' warning. But the alert is not auto dismissed when the hncModel alertVis value is set to false.