This commit is contained in:
Trey t
2022-02-10 10:59:19 -06:00
parent 34962d2fa3
commit 92514a5e33
5 changed files with 47 additions and 8 deletions

View File

@@ -16,9 +16,14 @@ class AppDelegate: NSObject, UIApplicationDelegate {
func application(_ application: UIApplication, willFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey : Any]? = nil) -> Bool {
// PersistenceController.shared.clearDB()
PersistenceController.shared.fillInMissingDates()
UNUserNotificationCenter.current().delegate = self
return true
}
func applicationWillEnterForeground(_ application: UIApplication) {
PersistenceController.shared.fillInMissingDates()
}
}
extension AppDelegate: UNUserNotificationCenterDelegate {