Post

Replies

Boosts

Views

Activity

Reply to BGTaskScheduler crashes on iOS 18.4
I've recently found that the crash also happens on my old iPad with iOS 16.7.10 when using .backgroundTask(.appRefresh) and attempting to run a shortcut while force closed. This makes it seem like it's an old bug that has returned in iOS 18.4. Looks like the modifier is no longer an option for me and will have to permanently stick with the old way.
Mar ’25
Reply to BGTaskScheduler crashes on iOS 18.4
This bug made it into the release candidate. Very disappointed! Now, to move over to the old way completely I need to switch the task identifier to the reverse DNS. But the problem is: The SwiftUI .backgroundTask modifier can't be there at all otherwise the crash will persist Not having the modifier means the old identifier won't be registered and thus if the old background task runs when the user updates but doesn't open the app, it will crash as the launch handler hasn't been registered How can I migrate to the old method without causing any crashes?
Mar ’25
Reply to BGTaskScheduler crashes on iOS 18.4
With my app force closed from multitasking I tried running my app's shortcuts and control centre buttons. I was able to make it crash almost every time if the app was swiped away from multitasking. This however only happens with the .backgroundTask modifier in iOS 18.4. I wasn't able to reproduce the crash with BGTaskScheduler.shared.register(forTaskWithIdentifier:). So my question is, if I move over to using the old way, do I have to make my identifier reverse DNS? Or can I keep using the existing notifications identifier that I already have?
Mar ’25
Reply to Back button is not visible when navigating from a view with no toolbar to a view with a toolbar button on macOS 15.4 beta
On macOS 15.4 beta 4, the toolbar button isn’t truncated anymore but the issue of the back button overlapping the title and being not clickable is still present. The only way to get around this issue is to hide the back button using .navigationBarBackButtonHidden(true) and then make my own back button using the navigation toolbar placement.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Mar ’25