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 Placeholders for text fields embedded in forms (macOS)
Thanks!
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Feb ’23
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 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