Post

Replies

Boosts

Views

Activity

Comment on iOS: List selection is reset to nil when app is sent to background
I'm running the app in the debugger so the app is not being terminated. Once it is in the background, selectedPerson is set to nil but the call stack doesn't reveal anything unfortunately. I manage to "fix" this behaviour by saving the value when didEnterBackgroundNotification is triggered and setting it back when willEnterForegroundNotification is. This is more of a hack than an actual solution but it was just to demonstrate the issue.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Dec ’22
Comment on iOS: List selection is reset to nil when app is sent to background
I'm running the app in the debugger so the app is not being terminated. Once it is in the background, selectedPerson is set to nil but the call stack doesn't reveal anything unfortunately. I manage to "fix" this behaviour by saving the value when didEnterBackgroundNotification is triggered and setting it back when willEnterForegroundNotification is. This is more of a hack than an actual solution but it was just to demonstrate the issue.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Dec ’22
Comment on Swift UI on iOS 14 not assigning new object to @State property
This will also work: let _ = assignment?.description
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Mar ’22
Comment on SwiftUI NavigationLink pops out by itself
Thank you!!! This fixed a similar issue for me!
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Mar ’22
Comment on DNSServiceNATPortMappingCreate now just fails on macOS 12
Moreover, I filed a radar days after the first Monterey beta was released during WWDC. We're constantly told "file your bugs early" by Apple but I guess this isn't enough.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Oct ’21
Comment on DNSServiceNATPortMappingCreate now just fails on macOS 12
I was told that this should be fixed when Monterey shipped at the latest. Now, many apps will stop working when people start to upgrade to Monterey. Since this is a serious regression, I wonder why this bug hasn't been fixed yet.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Oct ’21
Comment on Crashing only in Xcode 13.0 (EXC_BAD_INSTRUCTION)
This crash seems pretty random and occurs in different scenarios. At least it doesn't seem to be something we're doing wrong. Thanks for the radar!
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jun ’21
Comment on Crashing only in Xcode 13.0 (EXC_BAD_INSTRUCTION)
Yes, using Core Data with CloudKit and List with ForEach. I have a 3 columns app (sidebar, list, detail view). The crash occurs when I select an item in the sidebar, which causes the list to update. Sometimes I'm able to select an item and the list refreshes without crashing but most of the time it does.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jun ’21
Comment on DNSServiceNATPortMappingCreate now just fails on macOS 12
Silly me, forgot to call ntohs() on internalPort.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Jun ’21