Learn Courses My Dashboard

Background App refresh but in SwiftUI

Even though I am not using UIKit too much in app, I understand how it works when it comes to Background App refresh ( in tutorials ).

But I don’t find anything useful how I can implement it in SwiftUI, or at least how to combine UIKit methods like BGTaskScheduler with the swiftUI.

If someone knows here, I will really appreciate any help…

In the background, I want to retrieve some data from Firebase, and put them in an array of a specific model, once per day.

I dont think we have topics background fetching of data but it might be possible to set it up via firebase instead… I suggest to check the documentation maybe they have it covered