Post

Replies

Boosts

Views

Activity

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:
Mar ’25
Reply to Where to store DB for command line tool
Ok. Thanks for help.
Replies
Boosts
Views
Activity
Sep ’22
Reply to Create an iOS app for a single customer
Cool. Thanks for help.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Feb ’23
Reply to Unknown SQL alert when quitting my app
Ok. Alert never appeared again when I pressed OK. Still no clue as to why it happened.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Apr ’23
Reply to SwiftUI, ModelContext throwing layout engine exception
Figured out the issue. When the model data is saved to file and reloaded, any attempts to add more items will cause the crash indicated above. This is reproducible when creating a Document App project using SwiftUI/Swift/SwiftData options.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Oct ’23
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
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 SwiftUI refresh while alert is visible
Submitted a bug to feedback assistant. FB16778512 Contains cutdown project which shows the bug.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
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
Ignore previous post. Fix is limited.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Mar ’25