This commit is contained in:
Trey t
2022-02-10 11:54:32 -06:00
parent 4b4e69d752
commit f66caf93dd
8 changed files with 41 additions and 15 deletions

View File

@@ -47,15 +47,15 @@ extension AppDelegate: UNUserNotificationCenterDelegate {
switch action {
case .horrible:
PersistenceController.shared.add(mood: .horrible, forDate: date)
PersistenceController.shared.add(mood: .horrible, forDate: date, entryType: .notification)
case .bad:
PersistenceController.shared.add(mood: .bad, forDate: date)
PersistenceController.shared.add(mood: .bad, forDate: date, entryType: .notification)
case .average:
PersistenceController.shared.add(mood: .average, forDate: date)
PersistenceController.shared.add(mood: .average, forDate: date, entryType: .notification)
case .good:
PersistenceController.shared.add(mood: .good, forDate: date)
PersistenceController.shared.add(mood: .good, forDate: date, entryType: .notification)
case .great:
PersistenceController.shared.add(mood: .great, forDate: date)
PersistenceController.shared.add(mood: .great, forDate: date, entryType: .notification)
}
UIApplication.shared.applicationIconBadgeNumber = 0
}