add ability to rate a missing day

made bgview equatable so it doesn't get redrawn each time a sheet is shown

add more string to localization

fill in missing data on launch ... incase they have bgfetch turned off
This commit is contained in:
Trey t
2022-01-23 11:18:01 -06:00
parent 8ece03abce
commit fc62413a53
6 changed files with 79 additions and 8 deletions

View File

@@ -15,9 +15,9 @@ struct FeelsApp: App {
@UIApplicationDelegateAdaptor(AppDelegate.self) var appDelegate
let persistenceController = PersistenceController.shared
init() {
// persistenceController.fillInMissingDates()
persistenceController.fillInMissingDates()
BGTaskScheduler.shared.cancelAllTaskRequests()
BGTaskScheduler.shared.register(forTaskWithIdentifier: BGTask.updateDBMissingID, using: nil) { (task) in
BGTask.runFillInMissingDatesTask(task: task as! BGProcessingTask)