Post

Replies

Boosts

Views

Activity

Reply to SwiftUI refresh while alert is visible
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.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Mar ’25
Reply to SwiftUI refresh while alert is visible
I am not using UIKit in any way. It is pure SwiftUI. My guess is when the view the alert is displaying changes due to observed properties, the alert FW tries to redisplay the alert , sees it is already visible and emits the warning. I'll try to create a simple example over the next few days.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Mar ’25
Reply to SwiftUI refresh while alert is visible
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.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Mar ’25
Reply to SwiftUI refresh while alert is visible
I am not using UIKit in any way. It is pure SwiftUI. My guess is when the view the alert is displaying changes due to observed properties, the alert FW tries to redisplay the alert , sees it is already visible and emits the warning. I'll try to create a simple example over the next few days.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Mar ’25
Reply to Error when clicking on TextField : CLIENT ERROR: TUINSRemoteViewController does not override -viewServiceDidTerminateWithError: and thus cannot react to catastrophic errors beyond logging them
I have an old simple die rolling app which uses ObjC and nibs. On macOS 14.7.1. whenever I click on another textedit field, the error is logged. I am doing a modernisation update as I was informed that my app has not be updated in a while.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Dec ’24