Post

Replies

Boosts

Views

Activity

Comment on .backgroundTask in SwiftUI cannot compile
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.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Aug ’22
Comment on .backgroundTask in SwiftUI cannot compile
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.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Aug ’22
Comment on .backgroundTask in SwiftUI cannot compile
@LiYanan04818 it does work! How did you figure this out?? :D They need to fix this. Again thank you!
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Aug ’22
Comment on .backgroundTask in SwiftUI cannot compile
@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)
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Aug ’22
Comment on .backgroundTask in SwiftUI cannot compile
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.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jul ’22
Comment on SwiftUI iOS 15 NavigationLink pops out when press in textfield
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.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jun ’22
Comment on SwiftUI NavigationLink pops out by itself
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.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jun ’21