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 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
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 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 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 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 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 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 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 iOS: List selection is reset to nil when app is sent to background
Moreover, I always set selectedPerson to a default value at launch.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Dec ’22
Comment on Placeholders for text fields embedded in forms (macOS)
Thanks!
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Feb ’23
Comment on @Observable and didSet?
No.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jun ’23
Comment on iOS 17b6: Simultaneous accesses to ..., but modification requires exclusive access crash using Observation and SwiftUI
See the demo project above. If a project that simple crashes, then your suggestions won't help. My bet is that beta 6 is broken.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Aug ’23
Comment on iOS 17b6: Simultaneous accesses to ..., but modification requires exclusive access crash using Observation and SwiftUI
It only crashes on a device running b6. Someone mentioned above that the Simulator is actually on beta 5 since Xcode hasn't got an update this week.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Aug ’23
Comment on Unable to build project for localization string extraction
Exporting and importing worked exactly once for me, then it stopped working. Disabling "Localization Export Supported" doesn't help. Wy not just import the .xliff files? I'm starting to regret moving to Strings Dicts.
Replies
Boosts
Views
Activity
Oct ’23
Comment on manageSubscriptionsSheet not showing
Will do ASAP. Just tested in the 17.0.1 Simulator and the sheet is showing. Seems like a 17.2 regression. I'll try to test on 17.1.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Nov ’23