It worked. For goodness' sake, what nonsense. Could this bug be any more senseless? I love Apple, Xcode, SwiftUI, but this is pretty nuts. It was too close to lottery odds that I found this thread. Thanks for sharing.
Post
Replies
Boosts
Views
Activity
Thank you! This works for me too. Is this because NavigationView has been deprecated? A deprecation warning would have been valuable, had I not been aware. These things can be a time sink.
Hi, thank you for sharing this. In my case, this doesn't help. Indeed my app is only an iPhone and iPad app, no macOS. Regardless, I tried your code with #if os(iOS) to no avail.
@LiYanan04818 thank you for sharing this! I will test it out ASAP. Sorry I took a while to answer, I don't get notifications for mentions in these forums (I'll figure out a way to turn them on)
@LiYanan04818 it does work! How did you figure this out?? :D They need to fix this. Again thank you!
thanks @eskimo ! also .backgroundTask modifier is not sufficient to run the action closure upon app first start, we're having to use workarounds like running the function to schedule the task when the app goes to the background
@LiYanan04818 do you also have this problem? Don't wanna be off topic so I'll start another thread if need be.
Thank you both -J.